* fhandler.cc (fhandler_disk_file::fstat): Add correct modes to

symlinks when stat'ing on FAT or FAT32 file systems.
This commit is contained in:
Corinna Vinschen 2001-03-13 13:07:15 +00:00
parent ce2924faee
commit 1d39c83a32
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Mar 13 13:52:00 2001 Corinna Vinschen <corinna@vinschen.de>
* 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 <deo@logos-m.ru> 2001-03-12 Egor Duda <deo@logos-m.ru>
* fhandler.h (fhandler_termios::fixup_after_exec): New function. * fhandler.h (fhandler_termios::fixup_after_exec): New function.

View File

@ -954,7 +954,7 @@ fhandler_disk_file::fstat (struct stat *buf)
/* | S_IWGRP | S_IWOTH; we don't give write to group etc */ /* | S_IWGRP | S_IWOTH; we don't give write to group etc */
if (get_symlink_p ()) 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 ()) else if (get_socket_p ())
buf->st_mode |= S_IFSOCK; buf->st_mode |= S_IFSOCK;
else else