diff options
author | Ondřej Vašík <ovasik@redhat.com> | 2008-03-10 17:03:41 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-03-10 19:47:15 +0100 |
commit | 9c393fa1944e5decb2838de7cbcf6b371717fd77 (patch) | |
tree | 2231be9b72506005a058543193e659120bb121c6 /src/install.c | |
parent | 3c7a6ae340feee50ed6368ff9224aa3a29fff97e (diff) | |
download | coreutils-9c393fa1944e5decb2838de7cbcf6b371717fd77.tar.xz |
install, rmdir: write --verbose output to stdout, not to stderr.
* src/install.c (announce_mkdir): Write verbose output to stdout,
not to stderr.
* src/mkdir.c (announce mkdir): Use prog_fprintf for verbose output.
* src/prog-fprintf.c (prog_fprintf): New function and file.
* src/prog-fprintf.h: New file.
* src/rmdir.c (main): Write verbose output to stdout, not to stderr.
Quote directory name in a diagnostic.
* src/rmdir.c (remove_parents): Write verbose output to stdout,
not to stderr.
* doc/coreutils.texi: Mention that shred verbose output is to stderr.
* NEWS: Mention the changes.
Signed-off-by: Ondřej Vašík <ovasik@redhat.com>
Diffstat (limited to 'src/install.c')
-rw-r--r-- | src/install.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c index db08751e4..1d04373b1 100644 --- a/src/install.c +++ b/src/install.c @@ -1,5 +1,5 @@ /* install - copy files and set attributes - Copyright (C) 89, 90, 91, 1995-2007 Free Software Foundation, Inc. + Copyright (C) 89, 90, 91, 1995-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -34,6 +34,7 @@ #include "mkancesdirs.h" #include "mkdir-p.h" #include "modechange.h" +#include "prog-fprintf.h" #include "quote.h" #include "quotearg.h" #include "savewd.h" @@ -762,7 +763,7 @@ announce_mkdir (char const *dir, void *options) { struct cp_options const *x = options; if (x->verbose) - error (0, 0, _("creating directory %s"), quote (dir)); + prog_fprintf (stdout, _("creating directory %s"), quote (dir)); } /* Make ancestor directory DIR, whose last file name component is |