diff options
Diffstat (limited to 'debianutils/start_stop_daemon.c')
-rw-r--r-- | debianutils/start_stop_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 467deed48..094b3b18a 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -126,7 +126,7 @@ static int pid_is_user(int pid) | |||
126 | sprintf(buf, "/proc/%u", pid); | 126 | sprintf(buf, "/proc/%u", pid); |
127 | if (stat(buf, &sb) != 0) | 127 | if (stat(buf, &sb) != 0) |
128 | return 0; | 128 | return 0; |
129 | return (sb.st_uid == user_id); | 129 | return (sb.st_uid == (uid_t)user_id); |
130 | } | 130 | } |
131 | 131 | ||
132 | static int pid_is_cmd(pid_t pid) | 132 | static int pid_is_cmd(pid_t pid) |