/[smeserver]/rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-workstation-backup-spaces-catalog.patch
ViewVC logotype

Diff of /rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-workstation-backup-spaces-catalog.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by wellsi, Sat Jan 11 03:22:01 2014 UTC Revision 1.2 by wellsi, Sat Jan 11 23:26:48 2014 UTC
# Line 1  Line 1 
1  diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar  diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar
2  --- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar     2014-01-10 16:29:05.000000000 -0800  --- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar     2014-01-11 08:59:09.000000000 -0800
3  +++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2014-01-10 18:43:30.000000000 -0800  +++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2014-01-11 15:06:56.000000000 -0800
4  @@ -401,7 +401,7 @@  @@ -401,15 +401,18 @@
5   my @bknum;   my @bknum;
6   my @setd;   my @setd;
7   my @bkname;   my @bkname;
8  -open(DAR_LIST, "/usr/bin/dar_manager -Q -B $catalog -l |");  -open(DAR_LIST, "/usr/bin/dar_manager -Q -B $catalog -l |");
9  +open(DAR_LIST, "/usr/bin/dar_manager -Q -B \"$catalog\" -l |");  +my $pid = open (DAR_LIST, "-|", "/usr/bin/dar_manager", "-Q", "-B", "$catalog", "-l") or ldie ("Cannot start : $!");
10   while (<DAR_LIST>)   while (<DAR_LIST>)
11   {   {
12          next unless ($_ =~ /set/);  -       next unless ($_ =~ /set/);
13    -       chomp;
14    -       ($bknum[$i], $setd[$i], $bkname[$i]) = split(' ', $_, 3);
15    -       $i++;
16    +    next unless ($_ =~ /set/);
17    +    chomp;
18    +    ($bknum[$i], $setd[$i], $bkname[$i]) = split(' ', $_, 3);
19    +    $i++;
20     }
21    +waitpid ($pid, 0);
22    +$err = WEXITSTATUS($?);
23     close (DAR_LIST);
24    +ldie ("Catalog error : $err") if $err;
25    
26     # delete from catalog old removed backups
27    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed