OSDN Git Service

* spawn.cc (av::fixup): Check shell scripts for executability only on
authorcorinna <corinna>
Mon, 10 Aug 2009 18:36:28 +0000 (18:36 +0000)
committercorinna <corinna>
Mon, 10 Aug 2009 18:36:28 +0000 (18:36 +0000)
filesystems/mounts supporting real permissions.

winsup/cygwin/ChangeLog
winsup/cygwin/spawn.cc

index 83cf11c..dc5033f 100644 (file)
@@ -1,5 +1,10 @@
 2009-08-10  Corinna Vinschen  <corinna@vinschen.de>
 
+       * spawn.cc (av::fixup): Check shell scripts for executability only on
+       filesystems/mounts supporting real permissions.
+
+2009-08-10  Corinna Vinschen  <corinna@vinschen.de>
+
        * dtable.cc (DEV_SOCKET): New static WCHAR string.  Name of
        the native NT socket device.
        (dtable::init_std_file_from_handle): Remove unused tmp_pathbuf
index 4aafe6b..c5b5bee 100644 (file)
@@ -1083,7 +1083,7 @@ just_shell:
 
       /* Check if script is executable.  Otherwise we start non-executable
         scripts successfully, which is incorrect behaviour. */
-      if (check_file_access (real_path, X_OK) < 0)
+      if (real_path.has_acls () && check_file_access (real_path, X_OK) < 0)
        return -1;      /* errno is already set. */
 
       /* Replace argv[0] with the full path to the script if this is the