search for: wierd_system_is_root

Displaying 1 result from an estimated 1 matches for "wierd_system_is_root".

2001 Jul 11
1
RFD: uid of privileged user not fixed to 0
...thing like if (is_root(st.st_uid)) which would allow macros like the following on Unices: #define ROOT_UID 0 #define is_root(x) ((x) == ROOT_UID) and other definitions on other systems: #define ROOT_UID 18 /* "SYSTEM" account on NT/W2K */ and even functions: #define is_root(x) wierd_system_is_root(x) extern int wierd_system_is_root(uid_t); Is there any problem to do so? Since that change isn't messing anything up (IMO) it should be no problem to apply that already to the OpenBSD base sources of OpenSSH. Any comments (besides flaming on Windows)? Corinna -- Corinna Vinschen Cygwin D...