diff options
-rw-r--r-- | coreutils/shred.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/shred.c b/coreutils/shred.c index 4b95d197c..04bf87229 100644 --- a/coreutils/shred.c +++ b/coreutils/shred.c | |||
@@ -99,12 +99,12 @@ int shred_main(int argc UNUSED_PARAM, char **argv) | |||
99 | bb_copyfd_size(zero_fd, fd, size); | 99 | bb_copyfd_size(zero_fd, fd, size); |
100 | fdatasync(fd); | 100 | fdatasync(fd); |
101 | } | 101 | } |
102 | if (opt & OPT_u) { | ||
103 | ftruncate(fd, 0); | ||
104 | xunlink(fname); | ||
105 | } | ||
106 | xclose(fd); | ||
107 | } | 102 | } |
103 | if (opt & OPT_u) { | ||
104 | ftruncate(fd, 0); | ||
105 | xunlink(fname); | ||
106 | } | ||
107 | xclose(fd); | ||
108 | } | 108 | } |
109 | 109 | ||
110 | return EXIT_SUCCESS; | 110 | return EXIT_SUCCESS; |