(wipename): Print the `FILE: deleting' message only when in verbose mode.
authorJim Meyering <jim@meyering.net>
Sat, 23 Jan 1999 18:55:34 +0000 (18:55 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 23 Jan 1999 18:55:34 +0000 (18:55 +0000)
src/shred.c

index 996eb88..c9d1ebf 100644 (file)
@@ -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)