Zebediah Figura : server: Check whether the new file name is executable.

Alexandre Julliard julliard at winehq.org
Mon Mar 30 16:24:24 CDT 2020


Module: wine
Branch: master
Commit: 2b3904d2331a99666e9ce72e6d274d30c3424e82
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2b3904d2331a99666e9ce72e6d274d30c3424e82

Author: Zebediah Figura <z.figura12 at 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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at 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




More information about the wine-cvs mailing list