diff options
-rwxr-xr-x | command-stubs/losetup-stub | 2 | ||||
-rwxr-xr-x | losetup-stub | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/command-stubs/losetup-stub b/command-stubs/losetup-stub index 1a542b5e8..e96f684ea 100755 --- a/command-stubs/losetup-stub +++ b/command-stubs/losetup-stub @@ -19,7 +19,7 @@ def usage(): if len(argv) < 3: usage() -if argv[1] == "-d" and len(argv[2] > 4) and argv[2][-5:-1] == "loop": +if argv[1] == "-d" and len(argv[2]) > 4 and argv[2][-5:-1] == "loop": try: isys.makeDevInode(argv[2][-5:], argv[2]) isys.unlosetup(argv[2]) diff --git a/losetup-stub b/losetup-stub index 1a542b5e8..e96f684ea 100755 --- a/losetup-stub +++ b/losetup-stub @@ -19,7 +19,7 @@ def usage(): if len(argv) < 3: usage() -if argv[1] == "-d" and len(argv[2] > 4) and argv[2][-5:-1] == "loop": +if argv[1] == "-d" and len(argv[2]) > 4 and argv[2][-5:-1] == "loop": try: isys.makeDevInode(argv[2][-5:], argv[2]) isys.unlosetup(argv[2]) |