IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2009, 12:51:25 PM (17 years ago)
Author:
bills
Message:

set permissions based on umask if filename is not a nebulous key

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r24374 r25280  
    214214    $tmp->flush or die "can't flush filehandle: $!";
    215215    $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";
    216219    rename $tmpfilename, $filename
    217220        or die "renaming $tmpfilename to $filename failed: $!";
Note: See TracChangeset for help on using the changeset viewer.