summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-09-22 07:40:28 +0000
committerJim Meyering <jim@meyering.net>2002-09-22 07:40:28 +0000
commit8683024a34c12dacff9b9f58bc1f0ef552a60ae4 (patch)
tree757aab0b468d0d988016e22eb110b2fdf41e512e
parentd8e189433585ce2dee3d57102cb92bcede36c25f (diff)
downloadcoreutils-8683024a34c12dacff9b9f58bc1f0ef552a60ae4.tar.xz
(make_path): Minor reformatting.
-rw-r--r--lib/makepath.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index bebd245cd..007301077 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
@@ -311,7 +311,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
)
@@ -392,7 +392,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;
}