aboutsummaryrefslogtreecommitdiff
path: root/src/start-stop-daemon.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-04 16:16:06 +0000
committerRoy Marples <roy@marples.name>2007-10-04 16:16:06 +0000
commitbb9ad38de2dab93c5cdb0745b055c3346b6684c9 (patch)
treeb4b9d9492d6eacebce16542bd7d9a158d731e8bd /src/start-stop-daemon.c
parentbd83448633f7e3a2d9d37120090bf3e0460c059a (diff)
Punt rc_is_file
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 8fdcaa33..80bc86fe 100644
--- a/src/start-stop-daemon.c
+++ b/src/start-stop-daemon.c
@@ -728,7 +728,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)) {
+ if (! rc_exists (tmp)) {
eerror ("%s: %s does not exist", applet, tmp);
if (ch_root)
free (tmp);
@@ -754,7 +754,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))
+ if (pidfile && rc_exists (pidfile))
unlink (pidfile);
if (svcname)