X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmakepath.c;h=d4eaadeec280e539f4b754e3aab0d9a8fb6ea926;hb=2bf674b2395b6aff54eff7928d24f2995c37c28e;hp=26cb98634c6122993272c8636b049ff9d0ce3f75;hpb=146a08ca25be72049c5385e6484291f08012d78b;p=gnulib.git diff --git a/lib/makepath.c b/lib/makepath.c index 26cb98634..d4eaadeec 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; }