diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2009-02-15 23:13:35 -0500 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2009-02-15 23:13:35 -0500 |
commit | 5685d070f3ba98214aa02a472ed05dae2056c692 (patch) | |
tree | 5942d7ef4b26baa2e0b75907046dc2c463545d48 /tar/bsdtar_windows.c | |
parent | 4f71a7671f2c33b4be33f83b9e3968980af11815 (diff) | |
download | libarchive-5685d070f3ba98214aa02a472ed05dae2056c692.tar.gz |
Add execution bit to directory mode.
It is more simular unix.
SVN-Revision: 635
Diffstat (limited to 'tar/bsdtar_windows.c')
-rw-r--r-- | tar/bsdtar_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/bsdtar_windows.c b/tar/bsdtar_windows.c index 998fef19..a3cc1f2c 100644 --- a/tar/bsdtar_windows.c +++ b/tar/bsdtar_windows.c @@ -818,7 +818,7 @@ __hstat(HANDLE handle, struct ustat *st) if ((info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) == 0) mode |= S_IWUSR | S_IWGRP | S_IWOTH; if (info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) - mode |= S_IFDIR; + mode |= S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH; else mode |= S_IFREG; st->st_mode = mode; |