diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/setid.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/util/setid.c b/lib/util/setid.c index 88195d8ee82..eb7511083f0 100644 --- a/lib/util/setid.c +++ b/lib/util/setid.c @@ -56,7 +56,7 @@ int samba_setgroups(size_t setlen, const gid_t *gidset); #endif -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(HAVE_UNISTD_H) #include <unistd.h> #endif @@ -80,7 +80,7 @@ int samba_setgroups(size_t setlen, const gid_t *gidset); /* All the setXX[ug]id functions and setgroups Samba uses. */ int samba_setresuid(uid_t ruid, uid_t euid, uid_t suid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setresuid32, ruid, euid, suid); #else @@ -96,7 +96,7 @@ int samba_setresuid(uid_t ruid, uid_t euid, uid_t suid) int samba_setresgid(gid_t rgid, gid_t egid, gid_t sgid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setresgid32, rgid, egid, sgid); #else @@ -112,7 +112,7 @@ int samba_setresgid(gid_t rgid, gid_t egid, gid_t sgid) int samba_setreuid(uid_t ruid, uid_t euid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setreuid32, ruid, euid); #else @@ -128,7 +128,7 @@ int samba_setreuid(uid_t ruid, uid_t euid) int samba_setregid(gid_t rgid, gid_t egid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setregid32, rgid, egid); #else @@ -144,7 +144,7 @@ int samba_setregid(gid_t rgid, gid_t egid) int samba_seteuid(uid_t euid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) /* seteuid is not a separate system call. */ return syscall(SYS_setresuid32, -1, euid, -1); @@ -162,7 +162,7 @@ int samba_seteuid(uid_t euid) int samba_setegid(gid_t egid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) /* setegid is not a separate system call. */ return syscall(SYS_setresgid32, -1, egid, -1); @@ -180,7 +180,7 @@ int samba_setegid(gid_t egid) int samba_setuid(uid_t uid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setuid32, uid); #else @@ -196,7 +196,7 @@ int samba_setuid(uid_t uid) int samba_setgid(gid_t gid) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setgid32, gid); #else @@ -215,7 +215,7 @@ int samba_setuidx(int flags, uid_t uid) #if defined(HAVE_SETUIDX) return setuidx(flags, uid); #else - /* USE_LINUX_THREAD_CREDENTIALS doesn't have this. */ + /* HAVE_LINUX_THREAD_CREDENTIALS doesn't have this. */ errno = ENOSYS; return -1; #endif @@ -226,7 +226,7 @@ int samba_setgidx(int flags, gid_t gid) #if defined(HAVE_SETGIDX) return setgidx(flags, gid); #else - /* USE_LINUX_THREAD_CREDENTIALS doesn't have this. */ + /* HAVE_LINUX_THREAD_CREDENTIALS doesn't have this. */ errno = ENOSYS; return -1; #endif @@ -234,7 +234,7 @@ int samba_setgidx(int flags, gid_t gid) int samba_setgroups(size_t setlen, const gid_t *gidset) { -#if defined(USE_LINUX_THREAD_CREDENTIALS) +#if defined(HAVE_LINUX_THREAD_CREDENTIALS) #if defined(USE_LINUX_32BIT_SYSCALLS) return syscall(SYS_setgroups32, setlen, gidset); #else |