summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/create/perform.c
diff options
context:
space:
mode:
authoralm <alm@FreeBSD.org>1994-05-19 18:27:41 +0000
committeralm <alm@FreeBSD.org>1994-05-19 18:27:41 +0000
commit10d0bd53ff94d2136af2629b2cb33583e277d09e (patch)
tree57f6845b8e0519128a1d762370dc26d10f7f223c /usr.sbin/pkg_install/create/perform.c
parent459ed7e4316bf44797e4098d54efd58a0803b3b6 (diff)
downloadFreeBSD-src-10d0bd53ff94d2136af2629b2cb33583e277d09e.zip
FreeBSD-src-10d0bd53ff94d2136af2629b2cb33583e277d09e.tar.gz
Add `-h' option to force tar to follow symbolic links
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r--usr.sbin/pkg_install/create/perform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index 2363a38..7eb9ff3 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: perform.c,v 1.6 1993/09/12 20:56:40 jkh Exp $";
+static const char *rcsid = "$Id: perform.c,v 1.7 1993/09/18 03:39:20 jkh Exp $";
#endif
/*
@@ -145,6 +145,8 @@ make_dist(char *home, char *pkg, char *suffix, Package *plist)
sprintf(tball, "%s/%s.%s", home, pkg, suffix);
if (index(suffix, 'z')) /* Compress/gzip? */
strcat(args, "z");
+ if (Dereference)
+ strcat(args, "h");
if (Verbose)
printf("Creating gzip'd tar ball in '%s'\n", tball);
strcat(args, "cf");
OpenPOWER on IntegriCloud