diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-08-10 02:17:23 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-08-10 02:17:23 +0000 |
| commit | 49e55445655344a0dcb927e320ecc2167b7da1b3 (patch) | |
| tree | 534f7bcedc11a0aa1bb43275bff6ee1f769a8c85 /lib/libarchive | |
| parent | dd0363b3ecb257cc0c18614a39b9035d522820c8 (diff) | |
Notes
Diffstat (limited to 'lib/libarchive')
| -rw-r--r-- | lib/libarchive/archive_entry_strmode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libarchive/archive_entry_strmode.c b/lib/libarchive/archive_entry_strmode.c index 8022ea080874..301f7b614ff5 100644 --- a/lib/libarchive/archive_entry_strmode.c +++ b/lib/libarchive/archive_entry_strmode.c @@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$"); const char * archive_entry_strmode(struct archive_entry *entry) { - static const char *perms = "?rwxrwxrwx "; static const mode_t permbits[] = { 0400, 0200, 0100, 0040, 0020, 0010, 0004, 0002, 0001 }; char *bp = entry->strmode; @@ -47,7 +46,7 @@ archive_entry_strmode(struct archive_entry *entry) int i; /* Fill in a default string, then selectively override. */ - strcpy(bp, perms); + strcpy(bp, "?rwxrwxrwx "); mode = archive_entry_mode(entry); switch (archive_entry_filetype(entry)) { |
