diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-10 09:13:28 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-10 09:13:28 -0400 |
commit | ad3d9102dbec58bdd72fffe933081e8d258e962d (patch) | |
tree | 32f91557fb89a7ca44116a828cf25b64e95925fd /file_cmds/pax | |
parent | f6684a2134ecc4959011955e89abb6103dd2eb2f (diff) | |
download | apple_cmds-ad3d9102dbec58bdd72fffe933081e8d258e962d.tar.gz apple_cmds-ad3d9102dbec58bdd72fffe933081e8d258e962d.tar.zst apple_cmds-ad3d9102dbec58bdd72fffe933081e8d258e962d.zip |
file_cmds: mtree probably won't work, but it does compile
Diffstat (limited to 'file_cmds/pax')
-rw-r--r-- | file_cmds/pax/Makefile | 21 | ||||
-rw-r--r-- | file_cmds/pax/extern.h | 2 | ||||
-rw-r--r-- | file_cmds/pax/options.c | 2 |
3 files changed, 24 insertions, 1 deletions
diff --git a/file_cmds/pax/Makefile b/file_cmds/pax/Makefile new file mode 100644 index 0000000..fe5902c --- /dev/null +++ b/file_cmds/pax/Makefile @@ -0,0 +1,21 @@ +PROG= pax +MAN= cpio.1 pax.1 +SRCS= ar_io.c \ + ar_subs.c \ + buf_subs.c \ + cache.c \ + cpio.c \ + file_subs.c \ + ftree.c \ + gen_subs.c \ + getoldopt.c \ + options.c \ + pat_rep.c \ + pax_format.c \ + pax.c \ + sel_subs.c \ + tables.c \ + tar.c \ + tty_subs.c + +.include <bsd.prog.mk> diff --git a/file_cmds/pax/extern.h b/file_cmds/pax/extern.h index 16d3195..d2823de 100644 --- a/file_cmds/pax/extern.h +++ b/file_cmds/pax/extern.h @@ -203,7 +203,7 @@ int opt_add(const char *); int bad_opt(void); int pax_format_opt_add(char *); int pax_opt(void); -char *chdname; +extern char *chdname; /* * pat_rep.c diff --git a/file_cmds/pax/options.c b/file_cmds/pax/options.c index 0544e5e..2d968bd 100644 --- a/file_cmds/pax/options.c +++ b/file_cmds/pax/options.c @@ -65,6 +65,8 @@ __used static const char rcsid[] = "$OpenBSD: options.c,v 1.70 2008/06/11 00:49: #include "tar.h" #include "extern.h" +char *chdname; + /* * Routines which handle command line options */ |