start-stop-daemon now works with userids correctly when a pidfile

is not specified, #191206.
This commit is contained in:
Roy Marples 2007-09-04 09:32:36 +00:00
parent 52f7df0d0c
commit eb5b1c4c41
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
# ChangeLog for Gentoo System Intialization ("rc") scripts # ChangeLog for Gentoo System Intialization ("rc") scripts
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
04 Sep 2007; Roy Marples <uberlord@gentoo.org>:
start-stop-daemon now works with userids correctly when a pidfile
is not specified, #191206.
02 Sep 2007; Mike Frysinger <vapier@gentoo.org>: 02 Sep 2007; Mike Frysinger <vapier@gentoo.org>:
Always attempt to mount /dev/pts when devpts is available as it may appear Always attempt to mount /dev/pts when devpts is available as it may appear

View File

@ -118,7 +118,7 @@ pid_t *rc_find_pids (const char *exec, const char *cmd,
continue; continue;
if (uid) { 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) if (stat (buffer, &sb) != 0 || sb.st_uid != uid)
continue; continue;
} }