From: Jim Meyering Date: Sat, 23 Jan 1999 18:55:34 +0000 (+0000) Subject: (wipename): Print the `FILE: deleting' message only when in verbose mode. X-Git-Tag: TEXTUTILS-1_22h~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b0f03e1da5cb38d9ccfb2456a2bda580dd08c8a;p=platform%2Fupstream%2Fcoreutils.git (wipename): Print the `FILE: deleting' message only when in verbose mode. --- diff --git a/src/shred.c b/src/shred.c index 996eb88..c9d1ebf 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)