#include "version.h"
#include "safe-stat.h"
#include "modechange.h"
+#include "makepath.h"
#if !defined (isascii) || defined (STDC_HEADERS)
#undef isascii
void error ();
int safe_read ();
int full_write ();
-int make_path ();
int isdir ();
static int change_attributes ();
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
#include <sys/types.h>
#include "system.h"
#include "modechange.h"
+#include "makepath.h"
#include "version.h"
-int make_path ();
void error ();
static void usage ();
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]);