X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_attribPrint;h=dce9a33735d9e4043feceda3851945ce76185e81;hp=47ecf79ab2755244ca53d662a80262403cb16e78;hb=fb14ecbce30175cec1dc6942dbb281ea8efac345;hpb=546f9691f118c9ea2d164f377994b4a018a60d02 diff --git a/bin/BackupPC_attribPrint b/bin/BackupPC_attribPrint index 47ecf79..dce9a33 100755 --- a/bin/BackupPC_attribPrint +++ b/bin/BackupPC_attribPrint @@ -13,7 +13,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2005 Craig Barratt +# Copyright (C) 2005-2007 Craig Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 2.1.0, released 20 Jun 2004. +# Version 3.1.0, released 25 Nov 2007. # # 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); }