diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-01-25 17:20:51 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-01-25 17:20:51 +0100 |
commit | 804173bec1aa3aa03e20d95556c3c89ddcf4e4ed (patch) | |
tree | cf45cb9f408d94a40dd57296f5b52bec88f574e9 /examples | |
parent | 75c3b33550624fecb551b16f95ea65bf3323934f (diff) | |
download | python-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.py | 2 |
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) |