summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-01-25 17:20:51 +0100
committerHelmut Grohne <helmut@subdivi.de>2024-01-25 17:20:51 +0100
commit804173bec1aa3aa03e20d95556c3c89ddcf4e4ed (patch)
treecf45cb9f408d94a40dd57296f5b52bec88f574e9 /examples
parent75c3b33550624fecb551b16f95ea65bf3323934f (diff)
downloadpython-linuxnamespaces-804173bec1aa3aa03e20d95556c3c89ddcf4e4ed.tar.gz
fix examples/chrootfuse2fs.py
* Add execute bit * Consume first positional argument
Diffstat (limited to 'examples')
-rwxr-xr-x[-rw-r--r--]examples/chrootfuse2fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/chrootfuse2fs.py b/examples/chrootfuse2fs.py
index 8864a90..eaffe25 100644..100755
--- a/examples/chrootfuse2fs.py
+++ b/examples/chrootfuse2fs.py
@@ -21,7 +21,7 @@ import linuxnamespaces
def main() -> None:
- fsimage = pathlib.Path(sys.argv[2])
+ fsimage = pathlib.Path(sys.argv[1])
assert fsimage.exists()
uidmap = linuxnamespaces.IDAllocation.loadsubid("uid").allocatemap(65536)
gidmap = linuxnamespaces.IDAllocation.loadsubid("gid").allocatemap(65536)