From 2fb86e2eb854e84231c9dbbeaf47caf21d75dba1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 2 Jan 1998 23:16:38 +0000 Subject: [PATCH] (get_ids): When otherwise unspecified, set uid and gid to -1. --- src/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.c b/src/install.c index 4dc8716d5d..470da79a7d 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 -- 2.47.3