From 1d39c83a329b80334ae1ea9163f6a98767c60551 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 13 Mar 2001 13:07:15 +0000 Subject: [PATCH] * fhandler.cc (fhandler_disk_file::fstat): Add correct modes to symlinks when stat'ing on FAT or FAT32 file systems. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 166205821..ac3dbf423 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 13 13:52:00 2001 Corinna Vinschen + + * fhandler.cc (fhandler_disk_file::fstat): Add correct modes to + symlinks when stat'ing on FAT or FAT32 file systems. + 2001-03-12 Egor Duda * fhandler.h (fhandler_termios::fixup_after_exec): New function. 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