X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_attribPrint;h=08e01bedd1b3cfc026c65a27da16a5b3abbf6ec1;hp=47ecf79ab2755244ca53d662a80262403cb16e78;hb=b81d2da5e16975674f011e4833337ac0fa24e0ea;hpb=546f9691f118c9ea2d164f377994b4a018a60d02 diff --git a/bin/BackupPC_attribPrint b/bin/BackupPC_attribPrint index 47ecf79..08e01be 100755 --- a/bin/BackupPC_attribPrint +++ b/bin/BackupPC_attribPrint @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 2.1.0, released 20 Jun 2004. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # @@ -61,7 +61,17 @@ if ( !-f $ARGV[0] ) { } my $attrib = BackupPC::Attrib->new({ compress => $Conf{CompressLevel} }); -if ( !$attrib->read(".", $ARGV[0]) ) { + +my($dir, $file); + +if ( $ARGV[0] =~ m{(.+)/(.+)} ) { + $dir = $1; + $file = $2; +} else { + $dir = $ARGV[0]; +} + +if ( !$attrib->read($dir, $file) ) { print STDERR "Cannot read attrib file $ARGV[0]\n"; exit(1); }