Changeset 25766 for branches/eam_branches/20090820/DataStore/scripts/dsget
- Timestamp:
- Oct 2, 2009, 5:10:19 PM (17 years ago)
- Location:
- branches/eam_branches/20090820
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
DataStore/scripts/dsget (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090820
- Property svn:mergeinfo changed
-
branches/eam_branches/20090820/DataStore/scripts/dsget
r24374 r25766 69 69 undef $copies; 70 70 } 71 if ($copies < 1) {71 elsif ($copies < 1) { 72 72 die "--copies must be >= 1"; 73 73 } … … 207 207 if (defined $copies and $copies > 1) { 208 208 foreach (1 .. ($copies - 1)) { 209 $neb->replicate($filename , 'any')209 $neb->replicate($filename) 210 210 or die "failed to replicate $filename failed: $!"; 211 211 } … … 214 214 $tmp->flush or die "can't flush filehandle: $!"; 215 215 $tmp->sync or die "can't sync filehandle: $!"; 216 # set read and write permissions based on umask (ignore other bits) 217 my $umask = umask; 218 chmod 0666 ^ $umask, $tmpfilename or die "failed to chmod $tmpfilename"; 216 219 rename $tmpfilename, $filename 217 220 or die "renaming $tmpfilename to $filename failed: $!";
Note:
See TracChangeset
for help on using the changeset viewer.
