Handle fstab with spaces

This commit is contained in:
Roy Marples
2007-09-26 07:30:00 +00:00
parent 8a7b58a73d
commit e24d808fc5
4 changed files with 8 additions and 8 deletions

View File

@@ -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:

View File

@@ -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) ||

View File

@@ -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 */