summaryrefslogtreecommitdiff
path: root/bin/pax/extern.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-23 06:00:29 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-23 06:00:29 +0000
commitac786ca43090bd26c827b6c31b1d9f7113dff5f0 (patch)
treeecbbba9f287b0061c5a2d41d4710a61597f6033f /bin/pax/extern.h
parentb325ba5870f4ee25538109ea7216a95beee39479 (diff)
Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio)
in a separate variable ok deraadt@
Diffstat (limited to 'bin/pax/extern.h')
-rw-r--r--bin/pax/extern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pax/extern.h b/bin/pax/extern.h
index 80c7dc7be8a..774487b900d 100644
--- a/bin/pax/extern.h
+++ b/bin/pax/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.55 2016/08/14 04:47:52 guenther Exp $ */
+/* $OpenBSD: extern.h,v 1.56 2016/08/23 06:00:28 guenther Exp $ */
/* $NetBSD: extern.h,v 1.5 1996/03/26 23:54:16 mrg Exp $ */
/*-
@@ -240,6 +240,7 @@ extern int exit_val;
extern int docrc;
extern char *dirptr;
extern char *argv0;
+extern enum op_mode { OP_PAX, OP_TAR, OP_CPIO } op_mode;
extern FILE *listf;
extern int listfd;
extern char *tempfile;