From 5685d070f3ba98214aa02a472ed05dae2056c692 Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Sun, 15 Feb 2009 23:13:35 -0500 Subject: Add execution bit to directory mode. It is more simular unix. SVN-Revision: 635 --- tar/bsdtar_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tar/bsdtar_windows.c') 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; -- cgit v1.2.1