[pve-devel] [PATCH common] fix O_PATH value
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Apr 4 14:22:31 CEST 2016
---
The values in C are octal, not hex. (The old value didn't match any
existing flag so it had no effect, and not using O_PATH isn't an
actual problem either, it's just an optimization in our cases.)
src/PVE/Tools.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm
index 1d1f4b8..d6b501e 100644
--- a/src/PVE/Tools.pm
+++ b/src/PVE/Tools.pm
@@ -75,7 +75,7 @@ use constant {CLONE_NEWNS => 0x00020000,
CLONE_NEWPID => 0x20000000,
CLONE_NEWNET => 0x40000000};
-use constant O_PATH => 0x10000000;
+use constant O_PATH => 0x00200000;
sub run_with_timeout {
my ($timeout, $code, @param) = @_;
--
2.1.4
More information about the pve-devel
mailing list