diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/makepath.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/makepath.c b/lib/makepath.c index 007301077..4f954ba3a 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -355,6 +355,9 @@ make_path (const char *argpath, 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. */ @@ -364,9 +367,6 @@ make_path (const char *argpath, return 1; } - /* Done creating directories. Restore original umask. */ - umask (oldmask); - if (verbose_fmt_string != NULL) error (0, 0, verbose_fmt_string, quote (dirpath)); |