]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: don't return valid acl entry type for unknown SID
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 27 Aug 2018 11:30:55 +0000 (13:30 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 27 Aug 2018 11:48:07 +0000 (13:48 +0200)
commitfcfcc288c4d3e9ad3bca4d0c9dd79ee1c88a99f9
tree262e784fe2e719c084a1b8c0278b6cba10606a79
parent6706b19a974b10fc20234fc101ab7bf5f9563705
Cygwin: don't return valid acl entry type for unknown SID

cygpsid::get_id neglects to set the type to 0 (ACL_UNDEFINED_TAG
in POSIX speak) if the SID can not be translated into a valid
uid or gid.  This in turn leads to incorrect handling of uid/gid -1
entries.

Fix this by setting type to 0 if the id is unknown.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/sec_helper.cc
This page took 0.028407 seconds and 5 git commands to generate.