1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-03-02 02:54:28 +02:00

(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.
This commit is contained in:
Jim Meyering
1999-11-11 11:00:50 +00:00
parent 05e6e5583e
commit cbdf71ab00

View File

@@ -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