From eb5b1c4c4145d17f0daf06d80445cd7981b0b650 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 4 Sep 2007 09:32:36 +0000 Subject: start-stop-daemon now works with userids correctly when a pidfile is not specified, #191206. --- ChangeLog | 5 +++++ src/librc-daemon.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 46f7a411..e1755e3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for Gentoo System Intialization ("rc") scripts # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 + 04 Sep 2007; Roy Marples : + + start-stop-daemon now works with userids correctly when a pidfile + is not specified, #191206. + 02 Sep 2007; Mike Frysinger : Always attempt to mount /dev/pts when devpts is available as it may appear diff --git a/src/librc-daemon.c b/src/librc-daemon.c index 9e3ea488..f023a22f 100644 --- a/src/librc-daemon.c +++ b/src/librc-daemon.c @@ -118,7 +118,7 @@ pid_t *rc_find_pids (const char *exec, const char *cmd, continue; if (uid) { - snprintf (buffer, sizeof (buffer), "/proc/%d", pid); + snprintf (buffer, sizeof (buffer), "/proc/%d", p); if (stat (buffer, &sb) != 0 || sb.st_uid != uid) continue; } -- cgit v1.2.3