Use Gnulib's quote function in utils.c.

This commit is contained in:
Steven Schubiger 2008-04-16 12:35:03 +02:00
parent a358b3b69a
commit 3e34be1c4b
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@
* progress.c: Likewise.
* recur.c: Likewise.
* res.c: Likewise.
* utils.c: Likewise.
2008-04-16 Steven Schubiger <schubiger@gmail.com>

View File

@ -348,7 +348,7 @@ fork_to_background (void)
/* parent, no error */
printf (_("Continuing in background, pid %d.\n"), (int) pid);
if (logfile_changed)
printf (_("Output will be written to `%s'.\n"), opt.lfilename);
printf (_("Output will be written to %s.\n"), quote (opt.lfilename));
exit (0); /* #### should we use _exit()? */
}
@ -394,8 +394,8 @@ remove_link (const char *file)
DEBUGP (("Unlinking %s (symlink).\n", file));
err = unlink (file);
if (err != 0)
logprintf (LOG_VERBOSE, _("Failed to unlink symlink `%s': %s\n"),
file, strerror (errno));
logprintf (LOG_VERBOSE, _("Failed to unlink symlink %s: %s\n"),
quote (file), strerror (errno));
}
return err;
}