mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
env_universal_common: use uid_t in geteuid checks
The u_int typedef fails to compile on all platforms (e.g. Windows). It is part of the code imported from tmux. Update it to the SUS-standard uid_t. Closes #2821.
This commit is contained in:
parent
f20e8420a8
commit
03460a3928
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ static int check_runtime_path(const char * path)
|
|||
*/
|
||||
|
||||
struct stat statpath;
|
||||
u_int uid = geteuid();
|
||||
uid_t uid = geteuid();
|
||||
|
||||
if (mkdir(path, S_IRWXU) != 0 && errno != EEXIST)
|
||||
return errno;
|
||||
|
|
Loading…
Reference in a new issue