From 804173bec1aa3aa03e20d95556c3c89ddcf4e4ed Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 25 Jan 2024 17:20:51 +0100 Subject: fix examples/chrootfuse2fs.py * Add execute bit * Consume first positional argument --- examples/chrootfuse2fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 examples/chrootfuse2fs.py (limited to 'examples') diff --git a/examples/chrootfuse2fs.py b/examples/chrootfuse2fs.py old mode 100644 new mode 100755 index 8864a90..eaffe25 --- 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) -- cgit v1.2.3