From 578d495f91af8dc5dd774d4310ca06f7013712e7 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 18 Jan 2017 18:06:05 +0100 Subject: [PATCH] Last bits of enabling subuids This patch has been carried by Debian, originally submitted to BTS in #739981 --- src/newusers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newusers.c b/src/newusers.c index 724cbb40..0c0cfe40 100644 --- a/src/newusers.c +++ b/src/newusers.c @@ -988,8 +988,8 @@ int main (int argc, char **argv) is_shadow_grp = sgr_file_present (); #endif #ifdef ENABLE_SUBIDS - is_sub_uid = sub_uid_file_present (); - is_sub_gid = sub_gid_file_present (); + is_sub_uid = sub_uid_file_present () && !rflg; + is_sub_gid = sub_gid_file_present () && !rflg; #endif /* ENABLE_SUBIDS */ open_files (); -- 2.40.0