summaryrefslogtreecommitdiffstats
path: root/newlib/libc/unix/getpass.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-09-10 09:32:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-09-10 09:32:13 +0000
commit67a9307898f94346cbd4c83b6bae4f9611607818 (patch)
tree89c139fb02e34b2fbae48cbc34888148c5ce50d5 /newlib/libc/unix/getpass.c
parent28e19bafa0e3398a3e346effd4917db6ec8b5c85 (diff)
downloadcygnal-67a9307898f94346cbd4c83b6bae4f9611607818.tar.gz
cygnal-67a9307898f94346cbd4c83b6bae4f9611607818.tar.bz2
cygnal-67a9307898f94346cbd4c83b6bae4f9611607818.zip
* security.cc (get_file_sd): Add bool parameter justcreated. Use
GetSecurityInfo only if justcreated is true, NtQuerySecurityObject otherwise. Add comment to explain why. Don't waste time to call NtQuerySecurityObject twice, just allocate big enough area. (get_file_attribute): Call get_file_sd with justcreated set to false. (set_file_attribute): Call get_file_sd with justcreated depending on S_JUSTCREATED pseudo file attribute. (check_file_access): Call get_file_sd with justcreated set to false. * sec_acl.cc (setacl): Ditto. (getacl): Ditto. * security.h: Convert many functions to regparm functions. (get_file_sd): Declare with extra bool parameter.
Diffstat (limited to 'newlib/libc/unix/getpass.c')
0 files changed, 0 insertions, 0 deletions