mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-12 15:06:44 +02:00
Update calls to make_path.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user