diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-15 01:47:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-15 01:47:28 +0100 |
commit | f208e35deefe1ee6fe6722cec9ad8cc12e92e638 (patch) | |
tree | f63456d14b948e3a902ace235a9961865728faaf /net-misc/dhcp/files/dhcp-4.4.3-fix-perms.patch | |
parent | 4392d53af7ce45ccfe6eb14146479ef0e2bd790a (diff) |
gentoo auto-resync : 15:10:2022 - 01:47:28
Diffstat (limited to 'net-misc/dhcp/files/dhcp-4.4.3-fix-perms.patch')
-rw-r--r-- | net-misc/dhcp/files/dhcp-4.4.3-fix-perms.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/dhcp/files/dhcp-4.4.3-fix-perms.patch b/net-misc/dhcp/files/dhcp-4.4.3-fix-perms.patch new file mode 100644 index 000000000000..5b3a8ab2c20a --- /dev/null +++ b/net-misc/dhcp/files/dhcp-4.4.3-fix-perms.patch @@ -0,0 +1,15 @@ +--- a/server/dhcpd.c ++++ b/server/dhcpd.c +@@ -892,6 +892,12 @@ + if (lftest) + exit (0); + ++#if defined (PARANOIA) ++ /* Set proper permissions... */ ++ if (lchown (path_dhcpd_db, set_uid, set_gid)) ++ log_fatal ("lchown(%s, %d, %d): %m", path_dhcpd_db, (int) set_uid, (int) set_gid); ++#endif /* PARANOIA */ ++ + /* Discover all the network interfaces and initialize them. */ + #if defined(DHCPv6) && defined(DHCP4o6) + if (dhcpv4_over_dhcpv6) { |