1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Allow -r with -T even if there are no files on the command line.

PR: bin/123246
MFC after: 3 days
This commit is contained in:
Tim Kientzle 2008-05-02 05:14:58 +00:00
parent 53df73db45
commit a0a88a1e98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178714

View File

@ -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.");