Changeset 25397
- Timestamp:
- Sep 15, 2009, 3:58:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/DataStore/scripts/dsget
r24374 r25397 69 69 undef $copies; 70 70 } 71 if ($copies < 1) {71 elsif ($copies < 1) { 72 72 die "--copies must be >= 1"; 73 73 } … … 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.
