diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-03-07 11:29:42 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-05-13 14:21:52 +0200 |
commit | ca313dd8f4ceb7673c1c2fffb7da2c7bb291da30 (patch) | |
tree | 8ad7abc5df54556d6c4b8bf884b8f6f107c5d4e9 /winsup/cygwin/spawn.cc | |
parent | a70a969c64a4f101fdfea8a13a886563e703b0d0 (diff) | |
download | newlib-ca313dd8f4ceb7673c1c2fffb7da2c7bb291da30.zip newlib-ca313dd8f4ceb7673c1c2fffb7da2c7bb291da30.tar.gz newlib-ca313dd8f4ceb7673c1c2fffb7da2c7bb291da30.tar.bz2 |
Cygwin: drop create_token and dependent functions
Given we only called create_token on W7 WOW64 anyway, we can now
drop this function and all other functions only called from there
entirely.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index c9e1fb6..98b5886 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -752,11 +752,9 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv, sa = sec_user ((PSECURITY_ATTRIBUTES) alloca (1024), ::cygheap->user.sid ()); /* We're creating a window station per user, not per logon - session First of all we might not have a valid logon session - for the user (logon by create_token), and second, it doesn't - make sense in terms of security to create a new window - station for every logon of the same user. It just fills up - the system with window stations for no good reason. */ + session. It doesn't make sense in terms of security to + create a new window station for every logon of the same user. + It just fills up the system with window stations. */ hwst = CreateWindowStationW (::cygheap->user.get_windows_id (sid), 0, GENERIC_READ | GENERIC_WRITE, sa); if (!hwst) |