]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Update calls to make_path.
authorJim Meyering <jim@meyering.net>
Fri, 4 Nov 1994 06:00:41 +0000 (06:00 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 4 Nov 1994 06:00:41 +0000 (06:00 +0000)
src/install.c
src/mkdir.c

index 75958f1bd31e5d3bff6d618d27e3dfd25e8dc4cd..9ef65437f77233de3b59038668175fdadf02eb2c 100644 (file)
@@ -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
index 0bbe34441aaafaf7dfe8beb80852967d4501be7c..74b8d377c6634e4ce799131da845972a96645d01 100644 (file)
@@ -33,9 +33,9 @@
 #include <sys/types.h>
 #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]);