4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-03 21:45:51 +08:00

* security.cc (acl_worker): Use stat_suffixes in call to path_conv

just as in `stat_worker'.
This commit is contained in:
Corinna Vinschen 2000-07-21 10:06:13 +00:00
parent c32f82c82a
commit 6780333e20
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 21 12:03:00 2000 Corinna Vinschen <corinna@vinschen.de>
* security.cc (acl_worker): Use stat_suffixes in call to path_conv
just as in `stat_worker'.
Wed Jul 19 22:24:00 2000 Corinna Vinschen <corinna@vinschen.de> Wed Jul 19 22:24:00 2000 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Don't restore impersonation in case * spawn.cc (spawn_guts): Don't restore impersonation in case

View File

@ -1570,7 +1570,8 @@ int
acl_worker (const char *path, int cmd, int nentries, aclent_t *aclbufp, acl_worker (const char *path, int cmd, int nentries, aclent_t *aclbufp,
int nofollow) int nofollow)
{ {
path_conv real_path (path, (nofollow ? PC_SYM_NOFOLLOW : PC_SYM_FOLLOW) | PC_FULL); extern suffix_info stat_suffixes[];
path_conv real_path (path, (nofollow ? PC_SYM_NOFOLLOW : PC_SYM_FOLLOW) | PC_FULL, stat_suffixes);
if (real_path.error) if (real_path.error)
{ {
set_errno (real_path.error); set_errno (real_path.error);