Mercurial > hg > octave-nkf > gnulib-hg
changeset 3987:b2dd1757a9d4
(make_path): Restore umask *before* creating the final component.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 21 Nov 2002 09:44:27 +0000 |
parents | a1218d7e6019 |
children | b314b3c51dda |
files | lib/makepath.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/makepath.c +++ b/lib/makepath.c @@ -347,6 +347,9 @@ if (!do_chdir) basename_dir = dirpath; + /* Done creating leading directories. Restore original umask. */ + umask (oldmask); + /* We're done making leading directories. Create the final component of the path. */ @@ -356,9 +359,6 @@ return 1; } - /* Done creating directories. Restore original umask. */ - umask (oldmask); - if (verbose_fmt_string != NULL) error (0, 0, verbose_fmt_string, quote (dirpath));