tar: revamp "file is the archive" diagnostic
* src/create.c (dump_file0): For clarity, change diagnostic wording from "file is the archive; not dumped" to "archive cannot contain itself; not dumped". All test cases and documentation changed.
This commit is contained in:
@@ -39,11 +39,10 @@ tar -cf a.tar . -C dir
|
||||
./A.b
|
||||
./B.a
|
||||
],
|
||||
[tar: ./a.tar: file is the archive; not dumped
|
||||
[tar: ./a.tar: archive cannot contain itself; not dumped
|
||||
tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
||||
tar: -C 'dir' has no effect
|
||||
tar: Exiting with failure status due to previous errors
|
||||
])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user