diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-06-03 23:43:40 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-06-03 23:43:40 +0000 |
commit | 4cb95ee7021ba28fa06f8ab47474320590995b42 (patch) | |
tree | 4f4039e92d99490abf34e1e27e4395ba1191aa79 /usr.bin | |
parent | 848f68aacc771e36713004936dd584d0eacaf71c (diff) | |
download | FreeBSD-src-4cb95ee7021ba28fa06f8ab47474320590995b42.zip FreeBSD-src-4cb95ee7021ba28fa06f8ab47474320590995b42.tar.gz |
Pointy hat: sticky bit 't' or 'T' is shown over IXOTH bit, not IXGRP. <sigh>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tar/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/tar/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile index 60c0b06..dafac08 100644 --- a/usr.bin/tar/Makefile +++ b/usr.bin/tar/Makefile @@ -7,7 +7,7 @@ DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} LDADD= -larchive -lbz2 -lz .if defined(WITH_BSDTAR) -LINKS= ${BINDIR}/bsdtar ${BINDIR}/tar +SYMLINKS= ${BINDIR}/bsdtar ${BINDIR}/tar MLINKS= bsdtar.1 tar.1 .endif diff --git a/usr.bin/tar/util.c b/usr.bin/tar/util.c index df22404..dc1dd4b 100644 --- a/usr.bin/tar/util.c +++ b/usr.bin/tar/util.c @@ -228,7 +228,7 @@ bsdtar_strmode(struct archive_entry *entry, char *bp) else bp[6] = 'S'; } if (mode & S_ISVTX) { - if (mode & S_IXGRP) bp[9] = 't'; + if (mode & S_IXOTH) bp[9] = 't'; else bp[9] = 'T'; } if (archive_entry_acl_count(entry, ARCHIVE_ENTRY_ACL_TYPE_ACCESS)) |