aboutsummaryrefslogtreecommitdiff
path: root/toys/other/shred.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/shred.c')
-rw-r--r--toys/other/shred.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/other/shred.c b/toys/other/shred.c
index 64db5edf..5b018ea0 100644
--- a/toys/other/shred.c
+++ b/toys/other/shred.c
@@ -57,7 +57,7 @@ void shred_main(void)
fd = open(*try, O_RDWR);
}
if (fd == -1) {
- perror_msg("%s", *try);
+ perror_msg_raw(*try);
continue;
}
@@ -84,7 +84,7 @@ void shred_main(void)
if (pos < TT.offset) {
if (TT.offset != lseek(fd, TT.offset, SEEK_SET)) {
- perror_msg("%s", *try);
+ perror_msg_raw(*try);
break;
}
pos = TT.offset;
@@ -97,7 +97,7 @@ void shred_main(void)
if (len-pos < throw) throw = len-pos;
if (iter != TT.iterations) xread(TT.ufd, toybuf, throw);
- if (throw != writeall(fd, toybuf, throw)) perror_msg("%s");
+ if (throw != writeall(fd, toybuf, throw)) perror_msg_raw(*try);
pos += throw;
}
if (toys.optflags & FLAG_u)