* environ.cc (set_traverse): Remove.
(parse_thing): Drop "traverse" option. * path.cc (fs_info::update): Don't request SE_CHANGE_NOTIFY_PRIV privilege. * sec_helper.cc (set_cygwin_privileges): Ditto. * security.cc (allow_traverse): Remove. (alloc_sd): Drop special allow_traverse code. * security.h (allow_traverse): Drop declaration. * syscalls.cc (statvfs): Don't request SE_CHANGE_NOTIFY_PRIV privilege.
This commit is contained in:
@@ -1904,8 +1904,6 @@ statvfs (const char *fname, struct statvfs *sfs)
|
||||
DWORD spc, bps, availc, freec, totalc, vsn, maxlen, flags;
|
||||
BOOL status, statusex;
|
||||
|
||||
push_thread_privilege (SE_CHANGE_NOTIFY_PRIV, true);
|
||||
|
||||
/* GetDiskFreeSpaceEx must be called before GetDiskFreeSpace on
|
||||
WinME, to avoid the MS KB 314417 bug */
|
||||
statusex = GetDiskFreeSpaceEx (root, &availb, &totalb, &freeb);
|
||||
@@ -1970,8 +1968,6 @@ statvfs (const char *fname, struct statvfs *sfs)
|
||||
if (ret)
|
||||
__seterrno ();
|
||||
|
||||
pop_thread_privilege ();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user