summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index 0efddd0..c7fb70e 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -1543,7 +1543,7 @@ test_for_append(struct bsdtar *bsdtar)
if (stat(bsdtar->filename, &s) != 0)
return;
- if (!S_ISREG(s.st_mode))
+ if (!S_ISREG(s.st_mode) && !S_ISBLK(s.st_mode))
bsdtar_errc(bsdtar, 1, 0,
"Cannot append to %s: not a regular file.",
bsdtar->filename);
OpenPOWER on IntegriCloud