diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-05-02 05:14:58 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-05-02 05:14:58 +0000 |
commit | 8e1868638733ed215edf7d6bc5b48ab05f28c8af (patch) | |
tree | dab39e01b8184be12bcc5e2b43dde3b9c0c90256 /usr.bin/tar | |
parent | 97b58ed1756541272cdb49259524565505b9ddf3 (diff) | |
download | FreeBSD-src-8e1868638733ed215edf7d6bc5b48ab05f28c8af.zip FreeBSD-src-8e1868638733ed215edf7d6bc5b48ab05f28c8af.tar.gz |
Allow -r with -T even if there are no files on the command line.
PR: bin/123246
MFC after: 3 days
Diffstat (limited to 'usr.bin/tar')
-rw-r--r-- | usr.bin/tar/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index e1103dd..12a36a3 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -1534,7 +1534,7 @@ test_for_append(struct bsdtar *bsdtar) { struct stat s; - if (*bsdtar->argv == NULL) + if (*bsdtar->argv == NULL && bsdtar->names_from_file == NULL) bsdtar_errc(bsdtar, 1, 0, "no files or directories specified"); if (bsdtar->filename == NULL) bsdtar_errc(bsdtar, 1, 0, "Cannot append to stdout."); |