diff options
author | Norbert Preining <preining@logic.at> | 2009-09-01 16:11:24 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-09-01 16:11:24 +0000 |
commit | 82068c1b5d86f467a718a1f8c02444afa0cd3686 (patch) | |
tree | 36ed42a5c01d6f43babfcb01ec416e84c68d4e79 /Master/tlpkg/TeXLive | |
parent | 56fb7fbd9e05953565e9582e9bd1f8a533d9cf68 (diff) |
fix umask application
git-svn-id: svn://tug.org/texlive/trunk@14981 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 84c99221002..1af542ef783 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -771,8 +771,8 @@ C<(-l $file)> will never return 'C<true>' and so symlinks will be (uselessly) copied as regular files. C<copy> invokes C<mkdirhier> if target directories do not exist. Files -have mode C<0777>-I<umask> if they are executable and C<0666>-I<umask> -otherwise. +have mode C<0777> if they are executable and C<0666> otherwise, with +the set bits in I<umask> cleared in each case. C<$file> can begin with a file:/ prefix. @@ -824,7 +824,7 @@ sub copy binmode IN; $mode = (-x "$infile") ? oct("0777") : oct("0666"); - $mode -= umask; + $mode &= ~umask; open (OUT, ">$outfile") || die "open(>$outfile) failed: $!"; binmode OUT; |