fix spacing.
This commit is contained in:
parent
5e8e21d938
commit
51cb7ca7ac
|
@ -298,7 +298,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
|
||||||
if (prog_arg == NULL)
|
if (prog_arg == NULL)
|
||||||
{
|
{
|
||||||
syscall_printf ("prog_arg is NULL");
|
syscall_printf ("prog_arg is NULL");
|
||||||
set_errno(EINVAL);
|
set_errno (EINVAL);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
|
||||||
if (argv == NULL)
|
if (argv == NULL)
|
||||||
{
|
{
|
||||||
syscall_printf ("argv is NULL");
|
syscall_printf ("argv is NULL");
|
||||||
set_errno(EINVAL);
|
set_errno (EINVAL);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
|
||||||
else
|
else
|
||||||
chtype = PROC_EXEC;
|
chtype = PROC_EXEC;
|
||||||
|
|
||||||
HANDLE spr = CreateEvent(&sec_all, TRUE, FALSE, NULL);
|
HANDLE spr = CreateEvent (&sec_all, TRUE, FALSE, NULL);
|
||||||
ProtectHandle (spr);
|
ProtectHandle (spr);
|
||||||
|
|
||||||
init_child_info (chtype, &ciresrv, (mode == _P_OVERLAY) ? myself->pid : 1, spr);
|
init_child_info (chtype, &ciresrv, (mode == _P_OVERLAY) ? myself->pid : 1, spr);
|
||||||
|
@ -401,7 +401,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
|
||||||
DWORD done;
|
DWORD done;
|
||||||
|
|
||||||
char buf[2 * MAX_PATH + 1];
|
char buf[2 * MAX_PATH + 1];
|
||||||
buf[0] = buf[1] = buf[2] = buf[sizeof(buf) - 1] = '\0';
|
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);
|
CloseHandle (hnd);
|
||||||
|
@ -620,12 +620,12 @@ skip_arg_parsing:
|
||||||
char dskname[1024];
|
char dskname[1024];
|
||||||
|
|
||||||
ciresrv.moreinfo->uid = USHRT_MAX;
|
ciresrv.moreinfo->uid = USHRT_MAX;
|
||||||
hwst = GetProcessWindowStation();
|
hwst = GetProcessWindowStation ();
|
||||||
SetUserObjectSecurity(hwst, &dsi, get_null_sd ());
|
SetUserObjectSecurity (hwst, &dsi, get_null_sd ());
|
||||||
GetUserObjectInformation(hwst, UOI_NAME, wstname, 1024, &n);
|
GetUserObjectInformation (hwst, UOI_NAME, wstname, 1024, &n);
|
||||||
hdsk = GetThreadDesktop(GetCurrentThreadId());
|
hdsk = GetThreadDesktop (GetCurrentThreadId ());
|
||||||
SetUserObjectSecurity(hdsk, &dsi, get_null_sd ());
|
SetUserObjectSecurity (hdsk, &dsi, get_null_sd ());
|
||||||
GetUserObjectInformation(hdsk, UOI_NAME, dskname, 1024, &n);
|
GetUserObjectInformation (hdsk, UOI_NAME, dskname, 1024, &n);
|
||||||
strcat (wstname, "\\");
|
strcat (wstname, "\\");
|
||||||
strcat (wstname, dskname);
|
strcat (wstname, dskname);
|
||||||
si.lpDesktop = wstname;
|
si.lpDesktop = wstname;
|
||||||
|
@ -647,7 +647,7 @@ skip_arg_parsing:
|
||||||
: &sec_all_nih;
|
: &sec_all_nih;
|
||||||
|
|
||||||
/* Remove impersonation */
|
/* Remove impersonation */
|
||||||
uid_t uid = geteuid();
|
uid_t uid = geteuid ();
|
||||||
if (cygheap->user.impersonated
|
if (cygheap->user.impersonated
|
||||||
&& cygheap->user.token != INVALID_HANDLE_VALUE)
|
&& cygheap->user.token != INVALID_HANDLE_VALUE)
|
||||||
seteuid (cygheap->user.orig_uid);
|
seteuid (cygheap->user.orig_uid);
|
||||||
|
@ -822,7 +822,7 @@ skip_arg_parsing:
|
||||||
{
|
{
|
||||||
system_printf ("Reparent failed, parent handle %p, %E", h);
|
system_printf ("Reparent failed, parent handle %p, %E", h);
|
||||||
system_printf ("my dwProcessId %d, myself->dwProcessId %d",
|
system_printf ("my dwProcessId %d, myself->dwProcessId %d",
|
||||||
GetCurrentProcessId(), myself->dwProcessId);
|
GetCurrentProcessId (), myself->dwProcessId);
|
||||||
system_printf ("old hProcess %p, hProcess %p", oldh, myself->hProcess);
|
system_printf ("old hProcess %p, hProcess %p", oldh, myself->hProcess);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue