diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-30 05:56:40 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-30 05:56:40 +0400 |
commit | 90fe77395a80903e2bec1b00534b442082dfe4b2 (patch) | |
tree | 53ebb7a2f77967220fdb1d3e2b932e7bb7e8331d /winsup/cygwin/spawn.cc | |
parent | 84ecbb38d6843d5a80f6e91d6b1851005af0b109 (diff) |
* path.cc (symlink_info::check): Set executable bit for a file if the first two
characters are 'MZ' to mirror spawn_guts check.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index a1646e970..01a9cecd3 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -423,7 +423,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv, char buf[2 * MAX_PATH + 1]; buf[0] = buf[1] = buf[2] = buf[sizeof(buf) - 1] = '\0'; - if (! ReadFile (hnd, buf, sizeof (buf) - 1, &done, 0)) + if (!ReadFile (hnd, buf, sizeof (buf) - 1, &done, 0)) { CloseHandle (hnd); __seterrno (); @@ -456,8 +456,8 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv, { /* Null terminate the initial command and step over any additional white space. If we've hit the - end of the line, exit the loop. Otherwise, position - we've found the first argument. Position the current + end of the line, exit the loop. Otherwise, we've + found the first argument. Position the current pointer on the last known white space. */ *ptr = '\0'; char *newptr = ptr + 1; |