From 6564fd9944c6478655dfec306aa9cd046e694a23 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 11 Nov 1999 11:00:50 +0000 Subject: [PATCH] (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. --- lib/makepath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/makepath.c b/lib/makepath.c index 20e9a1288e..018b17e567 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 -- 2.30.2