aboutsummaryrefslogtreecommitdiff
path: root/src/librc-daemon.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-04 09:32:36 +0000
committerRoy Marples <roy@marples.name>2007-09-04 09:32:36 +0000
commiteb5b1c4c4145d17f0daf06d80445cd7981b0b650 (patch)
treecf561fe4bc84779b5b21e3f2083cf14119bd411a /src/librc-daemon.c
parent52f7df0d0c36be3d92c67f46a0f9433b0150ccf4 (diff)
start-stop-daemon now works with userids correctly when a pidfile
is not specified, #191206.
Diffstat (limited to 'src/librc-daemon.c')
-rw-r--r--src/librc-daemon.c2
1 files changed, 1 insertions, 1 deletions
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;
}