aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/tar.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/tar.C b/src/cmd/tar.C
index 30241e2f..42bdcd41 100644
--- a/src/cmd/tar.C
+++ b/src/cmd/tar.C
@@ -18,7 +18,8 @@
* keyletters and options.
*/
#define TARGBEGIN {\
- (argv0 || (argv0 = *argv)), argv++, argc--;\
+ __fixargv0(); if(!argv0) argv0=*argv; \
+ argv++, argc--; \
if (argv[0]) {\
char *_args, *_argt;\
Rune _argc;\