From e24d808fc50cba4f6da3ead3936e7960f38f60a3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 26 Sep 2007 07:30:00 +0000 Subject: Handle fstab with spaces --- src/fstabinfo.c | 4 ++-- src/rc-update.c | 2 +- src/start-stop-daemon.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fstabinfo.c b/src/fstabinfo.c index 85640ccf..db8d9623 100644 --- a/src/fstabinfo.c +++ b/src/fstabinfo.c @@ -186,8 +186,8 @@ int fstabinfo (int argc, char **argv) switch (output) { case OUTPUT_MOUNTCMD: - printf ("-o %s -t %s %s %s\n", ENT_OPTS (ent), ENT_TYPE (ent), - ENT_DEVICE (ent), ENT_FILE (ent)); + printf ("-o %s -t %s '%s' '%s'\n", ENT_OPTS (ent), + ENT_TYPE (ent), ENT_DEVICE (ent), ENT_FILE (ent)); break; case OUTPUT_OPTIONS: diff --git a/src/rc-update.c b/src/rc-update.c index b6c992f6..e799f973 100644 --- a/src/rc-update.c +++ b/src/rc-update.c @@ -161,7 +161,7 @@ int rc_update (int argc, char **argv) } } - verbose = rc_is_env ("RC_VERBOSE", "yes"); + verbose = rc_env_bool ("RC_VERBOSE"); if ((action & DOSHOW && action != DOSHOW) || (action & DOADD && action != DOADD) || diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index f61c2d90..89d03a2f 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -685,7 +685,7 @@ int start_stop_daemon (int argc, char **argv) } quiet = rc_env_bool ("RC_QUIET"); - verbose = rc_is_env ("RC_VERBOSE", "yes"); + verbose = rc_env_bool ("RC_VERBOSE"); /* Allow start-stop-daemon --signal HUP --exec /usr/sbin/dnsmasq * instead of forcing --stop --oknodo as well */ -- cgit v1.2.3