* spawn.cc (av::fixup): Check shell scripts for executability only on
filesystems/mounts supporting real permissions.
This commit is contained in:
parent
5f8c90bbc0
commit
9043b49e63
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2009-08-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dtable.cc (DEV_SOCKET): New static WCHAR string. Name of
|
* dtable.cc (DEV_SOCKET): New static WCHAR string. Name of
|
||||||
|
|
|
@ -1083,7 +1083,7 @@ just_shell:
|
||||||
|
|
||||||
/* Check if script is executable. Otherwise we start non-executable
|
/* Check if script is executable. Otherwise we start non-executable
|
||||||
scripts successfully, which is incorrect behaviour. */
|
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. */
|
return -1; /* errno is already set. */
|
||||||
|
|
||||||
/* Replace argv[0] with the full path to the script if this is the
|
/* Replace argv[0] with the full path to the script if this is the
|
||||||
|
|
Loading…
Reference in New Issue