Pointy hat: sticky bit 't' or 'T' is shown over IXOTH bit, not IXGRP. <sigh>

This commit is contained in:
kientzle 2004-06-03 23:43:40 +00:00
parent 848f68aacc
commit 4cb95ee702
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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))