/[smeserver]/rpms/e-smith-backup/sme7/e-smith-backup-2.0.0-handle-dirs-using-DirHandle.patch
ViewVC logotype

Diff of /rpms/e-smith-backup/sme7/e-smith-backup-2.0.0-handle-dirs-using-DirHandle.patch

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

Revision 1.2 by snetram, Sat Apr 9 12:18:45 2011 UTC Revision 1.3 by snetram, Wed Apr 13 20:42:08 2011 UTC
# Line 20  diff -up e-smith-backup-2.0.0/root/etc/e Line 20  diff -up e-smith-backup-2.0.0/root/etc/e
20  -           next if /cdrom/;  -           next if /cdrom/;
21  -           push @usbdisks, $_;  -           push @usbdisks, $_;
22  -           }  -           }
23  +        $d = new DirHandle "/media/";  +        my $d = new DirHandle "/media/";
24  +        if (defined $d) {  +        if (defined $d) {
25  +            while (defined($_ = $d->read)) {  +            while (defined($_ = $d->read)) {
26  +                unless ($_ =~ m/(floppy|cdrom|\.\.|\.)/i) {  +                unless ($_ =~ m/(floppy|cdrom|\.\.|\.)/i) {


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