summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-11-04 06:00:41 +0000
committerJim Meyering <jim@meyering.net>1994-11-04 06:00:41 +0000
commit7cced49416d8bbf95fdc08596efe055e480fddf4 (patch)
tree7555c9eb1b53660b4271454dfeb8912339aa0ed5 /src
parent70fe5e3261722fbdaad6057f5292aa96fcde9cd4 (diff)
downloadcoreutils-7cced49416d8bbf95fdc08596efe055e480fddf4.tar.xz
Update calls to make_path.
Diffstat (limited to 'src')
-rw-r--r--src/install.c4
-rw-r--r--src/mkdir.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/install.c b/src/install.c
index 75958f1bd..9ef65437f 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 0bbe34441..74b8d377c 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -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]);