Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-30 05:56:40 +0400
committerChristopher Faylor <me@cgf.cx>2000-09-30 05:56:40 +0400
commit90fe77395a80903e2bec1b00534b442082dfe4b2 (patch)
tree53ebb7a2f77967220fdb1d3e2b932e7bb7e8331d /winsup/cygwin/spawn.cc
parent84ecbb38d6843d5a80f6e91d6b1851005af0b109 (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.cc6
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;