summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-23 18:55:34 +0000
committerJim Meyering <jim@meyering.net>1999-01-23 18:55:34 +0000
commit1b0f03e1da5cb38d9ccfb2456a2bda580dd08c8a (patch)
treec35e296b9299ed92137b67e3978f204989f5f030 /src
parente21cf52e0386d20494d71764ab9fc51f459054d7 (diff)
downloadcoreutils-1b0f03e1da5cb38d9ccfb2456a2bda580dd08c8a.tar.xz
(wipename): Print the `FILE: deleting' message only when in verbose mode.
Diffstat (limited to 'src')
-rw-r--r--src/shred.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c
index 996eb8809..c9d1ebf04 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -1151,7 +1151,8 @@ wipename (char *oldname, struct Options const *flags)
int err;
int dirfd; /* Try to open directory to sync *it* */
- pfstatus (_("%s: deleting"), oldname);
+ if (flags->verbose)
+ pfstatus (_("%s: deleting"), oldname);
newname = strdup (oldname); /* This is a malloc */
if (!newname)