From bb6465ac7f68823e63fe53b135e5493906043af5 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 3 Jun 2025 11:04:17 +0200 Subject: drop redundant OPEN_TREE_ prefix from some OpenTreeFlags --- linuxnamespaces/syscalls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'linuxnamespaces/syscalls.py') diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py index b55be37..9c18af5 100644 --- a/linuxnamespaces/syscalls.py +++ b/linuxnamespaces/syscalls.py @@ -366,15 +366,15 @@ class OpenTreeFlags(enum.IntFlag): """This value may be supplied to open_tree(2) as flags.""" NONE = 0 - OPEN_TREE_CLONE = 0x1 - OPEN_TREE_CLOEXEC = os.O_CLOEXEC + CLONE = 0x1 + CLOEXEC = os.O_CLOEXEC AT_SYMLINK_NOFOLLOW = 0x100 AT_NO_AUTOMOUNT = 0x800 AT_EMPTY_PATH = 0x1000 AT_RECURSIVE = 0x8000 ALL_FLAGS = ( - OPEN_TREE_CLONE - | OPEN_TREE_CLOEXEC + CLONE + | CLOEXEC | AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT | AT_EMPTY_PATH @@ -690,7 +690,7 @@ def open_tree( raise ValueError("invalid flags for open_tree") if ( flags & OpenTreeFlags.AT_RECURSIVE - and not flags & OpenTreeFlags.OPEN_TREE_CLONE + and not flags & OpenTreeFlags.CLONE ): raise ValueError("invalid flags for open_tree") if source.flags & AtFlags.AT_SYMLINK_NOFOLLOW: -- cgit v1.2.3