]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
prevent autovivification of sectionconfig options
[pve-common.git] / src / PVE / Tools.pm
index 189b55264ea8796728798c255ccc0cebf79c0998..4dd073f8cf6a07b02055fc0bb6a97b9145b2b1db 100644 (file)
@@ -1384,6 +1384,11 @@ sub parse_host_and_port {
     return; # nothing
 }
 
+sub setresuid($$$) {
+    my ($ruid, $euid, $suid) = @_;
+    return 0 == syscall(PVE::Syscall::setresuid, $ruid, $euid, $suid);
+}
+
 sub unshare($) {
     my ($flags) = @_;
     return 0 == syscall(PVE::Syscall::unshare, $flags);