From 6ddebeedb1862db4a9d3443b979c8a9744077dda Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Mon, 25 Sep 2017 23:01:54 -0300 Subject: acquire_privs: Cosmetic change to reduce indentation This reads more clearly. Signed-off-by: Marcos Paulo de Souza Closes: #218 Approved by: cgwalters --- bubblewrap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bubblewrap.c b/bubblewrap.c index 316f4b6..edd9887 100644 --- a/bubblewrap.c +++ b/bubblewrap.c @@ -641,11 +641,10 @@ acquire_privs (void) /* Are we setuid ? */ if (real_uid != euid) { - if (euid == 0) - is_privileged = TRUE; - else + if (euid != 0) die ("Unexpected setuid user %d, should be 0", euid); + is_privileged = TRUE; /* We want to keep running as euid=0 until at the clone() * operation because doing so will make the user namespace be * owned by root, which makes it not ptrace:able by the user as -- cgit v1.2.1