diff options
author | Ron Yorston <rmy@pobox.com> | 2021-08-14 13:06:36 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-08-14 13:12:29 +0100 |
commit | 4c6c8d61bc95f5f56d91c83390f3e2631c55c37f (patch) | |
tree | 0108e9bbc2971cd631693260e389917b0fe5ff88 /init | |
parent | f1453b79a582d50e66fe68744abac64f384f91b1 (diff) | |
download | busybox-w32-4c6c8d61bc95f5f56d91c83390f3e2631c55c37f.tar.gz busybox-w32-4c6c8d61bc95f5f56d91c83390f3e2631c55c37f.tar.bz2 busybox-w32-4c6c8d61bc95f5f56d91c83390f3e2631c55c37f.zip |
win32: tidy up fetching of system directory
Add a new function, getsysdir(), to fetch and cache the system
directory. This avoids the non-intuitive use of getpwuid() in
get_system_drive().
The call to GetSystemDirectory() in get_proc_addr() can't be
replaced because getsysdir() calls realpath() which requires a
call to get_proc_addr().
No change in the size of the binary.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions