aboutsummaryrefslogtreecommitdiff
path: root/src/start-stop-daemon.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-25 17:30:07 +0000
committerRoy Marples <roy@marples.name>2007-09-25 17:30:07 +0000
commitc6c7df47a00a8a974eb026f31e94bfc07984ac13 (patch)
treee948cd07dae4554bdeebaeae95a60782d0b293ab /src/start-stop-daemon.c
parent1a6451654fe365c1981b18f35cb6e453166d1b32 (diff)
Revert last patch
Diffstat (limited to 'src/start-stop-daemon.c')
-rw-r--r--src/start-stop-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c
index fc5fccb8..1b4c7f28 100644
--- a/src/start-stop-daemon.c
+++ b/src/start-stop-daemon.c
@@ -733,7 +733,7 @@ int start_stop_daemon (int argc, char **argv)
tmp = rc_strcatpaths (ch_root, exec, (char *) NULL);
else
tmp = exec;
- if (rc_is_file (tmp) != 0) {
+ if (! rc_is_file (tmp)) {
eerror ("%s: %s does not exist", applet, tmp);
if (ch_root)
free (tmp);
@@ -759,7 +759,7 @@ int start_stop_daemon (int argc, char **argv)
if (result < 1)
exit (result == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
- if (pidfile && rc_is_file (pidfile) == 0)
+ if (pidfile && rc_is_file (pidfile))
unlink (pidfile);
if (svcname)