* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only do the
executable thing for #! scripts since .exe files wouldn't be executable in ntsec case regardless.
This commit is contained in:
parent
7dcbb978e0
commit
046a4e718e
|
@ -1,3 +1,9 @@
|
|||
2002-10-22 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only
|
||||
do the executable thing for #! scripts since .exe files wouldn't be
|
||||
executable in ntsec case regardless.
|
||||
|
||||
2002-10-22 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always
|
||||
|
|
|
@ -301,12 +301,12 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc,
|
|||
{
|
||||
buf->st_mode |= S_IFREG;
|
||||
}
|
||||
if (pc->exec_state () == is_executable)
|
||||
buf->st_mode |= STD_XBITS;
|
||||
}
|
||||
|
||||
if (buf->st_mode & STD_XBITS)
|
||||
/* already derived */;
|
||||
else if (pc->exec_state () == is_executable)
|
||||
buf->st_mode |= STD_XBITS;
|
||||
else if (pc->exec_state () == dont_know_if_executable)
|
||||
{
|
||||
DWORD cur, done;
|
||||
|
|
Loading…
Reference in New Issue