mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
Hide setperms when not in use
This commit is contained in:
parent
9a6e011a9f
commit
ee2f3039df
@ -626,6 +626,7 @@ error:
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !HAVE_SYS_CAPABILITY_H
|
||||||
static void
|
static void
|
||||||
setperms(uid_t uid, gid_t gid) {
|
setperms(uid_t uid, gid_t gid) {
|
||||||
#if defined(HAVE_SETEGID) || defined(HAVE_SETRESGID)
|
#if defined(HAVE_SETEGID) || defined(HAVE_SETRESGID)
|
||||||
@ -673,6 +674,7 @@ setperms(uid_t uid, gid_t gid) {
|
|||||||
}
|
}
|
||||||
#endif /* if defined(HAVE_SETEUID) */
|
#endif /* if defined(HAVE_SETEUID) */
|
||||||
}
|
}
|
||||||
|
#endif /* !HAVE_SYS_CAPABILITY_H */
|
||||||
|
|
||||||
FILE *
|
FILE *
|
||||||
named_os_openfile(const char *filename, mode_t mode, bool switch_user) {
|
named_os_openfile(const char *filename, mode_t mode, bool switch_user) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user