>From fdabf4869f868fe8ea0994910cc4944ebfd0b098 Mon Sep 17 00:00:00 2001 From: "Yuriy M. Kaminskiy" Date: Wed, 2 Jan 2013 02:57:15 +0400 Subject: [PATCH 6/7] ninfod: use -u without capabilities too --- ninfod/ninfod.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ninfod/ninfod.c b/ninfod/ninfod.c index 5ff6993..f1db977 100644 --- a/ninfod/ninfod.c +++ b/ninfod/ninfod.c @@ -589,7 +589,7 @@ static void drop_capabilities(void) cap_free(cap_p); #else - if (setuid(getuid()) < 0) { + if (setuid(opt_u ? opt_u : getuid()) < 0) { DEBUG(LOG_ERR, "setuid: %s\n", strerror(errno)); exit(-1); } -- 1.7.6.3