Age | Commit message (Collapse) | Author |
|
stop us from restricting permissions of just-created absolute-named
directories.
|
|
(make_dir_parents): Last arg is now int * (for errno), not bool *.
Rewrite "mkdir -p" algorithm to avoid the need for "stat"
each time through the loop. Do not diagnose restore_cwd failure;
that is the caller's job (and perhaps the caller does not care).
|
|
(make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
If the file already exists but is not a directory, don't bother
to try to make its parents.
Close potential file descriptor leak if we can't chdir("/") (!).
Don't always return true if chdir($PWD) fails; return true only
if the requested action was done successfully (except for the
chdir($PWD)).
Don't log final directory unless we actually made it.
Refactor to avoid duplicate code to fix up permissions.
Don't attempt to fix up parent permissions if chdir($PWD) fails.
|
|
|
|
to restore initial working directory.
|
|
to tell caller if/when we change the working directory and are
unable to return to the initial one.
|
|
This fixes a bug introduced on 2004-07-30.
|
|
(make_dir_parents): Renamed from make_path. All callers changed.
|