* 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:
		| @@ -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. | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user