>From 32ad925cba9aca3513561c7655c9f61642a341ca 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 d1b99d9..0f54da3 100644 --- a/ninfod/ninfod.c +++ b/ninfod/ninfod.c @@ -561,7 +561,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