From: Jim Meyering Date: Fri, 4 Nov 1994 06:00:41 +0000 (+0000) Subject: Update calls to make_path. X-Git-Tag: textutils-1_12_1~471 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cced49416d8bbf95fdc08596efe055e480fddf4;p=thirdparty%2Fcoreutils.git Update calls to make_path. --- diff --git a/src/install.c b/src/install.c index 75958f1bd3..9ef65437f7 100644 --- a/src/install.c +++ b/src/install.c @@ -63,6 +63,7 @@ #include "version.h" #include "safe-stat.h" #include "modechange.h" +#include "makepath.h" #if !defined (isascii) || defined (STDC_HEADERS) #undef isascii @@ -98,7 +99,6 @@ char *xmalloc (); void error (); int safe_read (); int full_write (); -int make_path (); int isdir (); static int change_attributes (); @@ -238,7 +238,7 @@ main (argc, argv) for (; optind < argc; ++optind) { errors |= - make_path (argv[optind], mode, mode, owner_id, group_id, NULL); + make_path (argv[optind], mode, mode, owner_id, group_id, 0, NULL); } } else diff --git a/src/mkdir.c b/src/mkdir.c index 0bbe34441a..74b8d377c6 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -33,9 +33,9 @@ #include #include "system.h" #include "modechange.h" +#include "makepath.h" #include "version.h" -int make_path (); void error (); static void usage (); @@ -123,7 +123,10 @@ main (argc, argv) for (; optind < argc; ++optind) { if (path_mode) - errors |= make_path (argv[optind], newmode, parent_mode, -1, -1, NULL); + { + errors |= make_path (argv[optind], newmode, parent_mode, + -1, -1, 1, NULL); + } else if (mkdir (argv[optind], newmode)) { error (0, errno, "cannot make directory `%s'", argv[optind]);