From e9179ab61463e64a338df16e7285ac50fc7d312b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 21 Nov 2002 09:46:03 +0000 Subject: [PATCH] (make_path): Minor reformatting. --- lib/makepath.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/makepath.c b/lib/makepath.c index 26cb98634c..d4eaadeec2 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -46,7 +46,7 @@ char *alloca (); # undef S_ISDIR #endif -#if !defined(S_ISDIR) && defined(S_IFDIR) +#if !defined S_ISDIR && defined S_IFDIR # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif @@ -303,7 +303,7 @@ make_path (const char *argpath, if ((owner != (uid_t) -1 || group != (gid_t) -1) && chown (basename_dir, owner, group) -#if defined(AFS) && defined (EPERM) +#if defined AFS && defined EPERM && errno != EPERM #endif ) @@ -384,7 +384,8 @@ make_path (const char *argpath, if ((mode & ~S_IRWXUGO) && chmod (basename_dir, mode)) { - error (0, errno, _("cannot change permissions of %s"), quote (dirpath)); + error (0, errno, _("cannot change permissions of %s"), + quote (dirpath)); retval = 1; } -- 2.30.2