X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkancesdirs.c;h=19f7dca5bcb1d7428132ec82b8a21c2dcab57b29;hb=024eeefda59f214eeaac745db9f3e982b9a726c3;hp=efdabb4fada91e13b7f70ee349a30ec02eedd6a9;hpb=eeb96e1a6b5e0b31a4011d7d333999592c0bb2e9;p=gnulib.git diff --git a/lib/mkancesdirs.c b/lib/mkancesdirs.c index efdabb4fa..19f7dca5b 100644 --- a/lib/mkancesdirs.c +++ b/lib/mkancesdirs.c @@ -42,12 +42,12 @@ savewd. Create any ancestor directories that don't already exist, by - invoking MAKE_DIR (COMPONENT, MAKE_DIR_ARG). This function should - return 0 if successful and the resulting directory is readable, 1 - if successful but the resulting directory might not be readable, -1 - (setting errno) otherwise. If COMPONENT is relative, it is - relative to the temporary working directory, which may differ from - *WD. + invoking MAKE_DIR (FILE, COMPONENT, MAKE_DIR_ARG). This function + should return 0 if successful and the resulting directory is + readable, 1 if successful but the resulting directory might not be + readable, -1 (setting errno) otherwise. If COMPONENT is relative, + it is relative to the temporary working directory, which may differ + from *WD. Ordinarily MAKE_DIR is executed with the working directory changed to reflect the already-made prefix, and mkancesdirs returns with @@ -66,7 +66,7 @@ ptrdiff_t mkancesdirs (char *file, struct savewd *wd, - int (*make_dir) (char const *, void *), + int (*make_dir) (char const *, char const *, void *), void *make_dir_arg) { /* Address of the previous directory separator that follows an @@ -114,7 +114,7 @@ mkancesdirs (char *file, struct savewd *wd, && component[0] == '.' && component[1] == '.') made_dir = false; else - switch (make_dir (component, make_dir_arg)) + switch (make_dir (file, component, make_dir_arg)) { case -1: make_dir_errno = errno;