summaryrefslogtreecommitdiff
path: root/lib/makepath.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-11-11 11:00:50 +0000
committerJim Meyering <jim@meyering.net>1999-11-11 11:00:50 +0000
commitcbdf71ab008bd0ea94424b88acfd64f4bc8d666a (patch)
treee82bde2a4fafa09c7580333120c75cc2cb5f7026 /lib/makepath.c
parent05e6e5583e444bf0a3829bbe5eaf6cdd25fc1d71 (diff)
downloadcoreutils-cbdf71ab008bd0ea94424b88acfd64f4bc8d666a.tar.xz
(make_path): Fix long-latent bug (note others
just like it were fixed in 1998-01-02). A user (FIXME, who?) reported that using `install -d -g foo 1/2` only sets the group on the intermediate directory, not the final component. From Michael Stone.
Diffstat (limited to 'lib/makepath.c')
-rw-r--r--lib/makepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index 20e9a1288..018b17e56 100644
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -369,7 +369,7 @@ make_path (const char *argpath,
if (verbose_fmt_string != NULL)
error (0, 0, verbose_fmt_string, dirpath);
- if (owner != (uid_t) -1 && group != (gid_t) -1)
+ if (owner != (uid_t) -1 || group != (gid_t) -1)
{
if (chown (basename_dir, owner, group)
#ifdef AFS