summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-01-02 23:16:38 +0000
committerJim Meyering <jim@meyering.net>1998-01-02 23:16:38 +0000
commit2fb86e2eb854e84231c9dbbeaf47caf21d75dba1 (patch)
treee3e6a34d3750cb07b0fca0cb4798e738004e72ce /src/install.c
parent53bc7b04cba662f9e2f020f45b08a8a8c80ef0e9 (diff)
downloadcoreutils-2fb86e2eb854e84231c9dbbeaf47caf21d75dba1.tar.xz
(get_ids): When otherwise unspecified, set uid and gid to -1.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index 4dc8716d5..470da79a7 100644
--- a/src/install.c
+++ b/src/install.c
@@ -607,7 +607,7 @@ get_ids (void)
endpwent ();
}
else
- owner_id = getuid ();
+ owner_id = (uid_t) -1;
if (group_name)
{
@@ -625,7 +625,7 @@ get_ids (void)
endgrent ();
}
else
- group_id = getgid ();
+ group_id = (gid_t) -1;
}
static void