diff options
Diffstat (limited to 'debianutils')
-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 91f51a3c6..875eca511 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -204,7 +204,7 @@ static void do_pidfile(void) | |||
204 | FILE *f; | 204 | FILE *f; |
205 | unsigned pid; | 205 | unsigned pid; |
206 | 206 | ||
207 | f = fopen(pidfile, "r"); | 207 | f = fopen_for_read(pidfile); |
208 | if (f) { | 208 | if (f) { |
209 | if (fscanf(f, "%u", &pid) == 1) | 209 | if (fscanf(f, "%u", &pid) == 1) |
210 | check(pid); | 210 | check(pid); |