Module: wine Branch: master Commit: 2b3904d2331a99666e9ce72e6d274d30c3424e82 URL: https://source.winehq.org/git/wine.git/?a=commit;h=2b3904d2331a99666e9ce72e6...
Author: Zebediah Figura z.figura12@gmail.com Date: Mon Mar 30 00:12:18 2020 -0500
server: Check whether the new file name is executable.
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
server/fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/fd.c b/server/fd.c index 5019ae2da0..d4584f7326 100644 --- a/server/fd.c +++ b/server/fd.c @@ -2438,7 +2438,7 @@ static void set_fd_name( struct fd *fd, struct fd *root, const char *nameptr,
if (is_file_executable( fd->unix_name ) != is_file_executable( name ) && !fstat( fd->unix_fd, &st )) { - if (is_file_executable( fd->unix_name )) + if (is_file_executable( name )) /* set executable bit where read bit is set */ st.st_mode |= (st.st_mode & 0444) >> 2; else