Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-03-13 16:07:15 +0300
committerCorinna Vinschen <corinna@vinschen.de>2001-03-13 16:07:15 +0300
commit1d39c83a329b80334ae1ea9163f6a98767c60551 (patch)
tree073e7be36fc27d309d83d2d7ac03ba954e54ac32 /winsup/cygwin/fhandler.cc
parentce2924faee7aa8966e921b07c85196e01965df62 (diff)
* fhandler.cc (fhandler_disk_file::fstat): Add correct modes to
symlinks when stat'ing on FAT or FAT32 file systems.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 82fa034cd..9539d049a 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -954,7 +954,7 @@ fhandler_disk_file::fstat (struct stat *buf)
/* | S_IWGRP | S_IWOTH; we don't give write to group etc */
if (get_symlink_p ())
- buf->st_mode |= S_IFLNK;
+ buf->st_mode |= S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO;
else if (get_socket_p ())
buf->st_mode |= S_IFSOCK;
else