summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcommand-stubs/losetup-stub2
-rwxr-xr-xlosetup-stub2
2 files changed, 2 insertions, 2 deletions
diff --git a/command-stubs/losetup-stub b/command-stubs/losetup-stub
index fed047d97..1a542b5e8 100755
--- a/command-stubs/losetup-stub
+++ b/command-stubs/losetup-stub
@@ -28,7 +28,7 @@ if argv[1] == "-d" and len(argv[2] > 4) and argv[2][-5:-1] == "loop":
sys.exit (1)
sys.exit(0)
-if len(argv[1] > 4) and argv[1][-5:-1] == "loop":
+if len(argv[1]) > 4 and argv[1][-5:-1] == "loop":
try:
isys.makeDevInode(argv[1][-5:], argv[1])
isys.losetup(argv[1], argv[2])
diff --git a/losetup-stub b/losetup-stub
index fed047d97..1a542b5e8 100755
--- a/losetup-stub
+++ b/losetup-stub
@@ -28,7 +28,7 @@ if argv[1] == "-d" and len(argv[2] > 4) and argv[2][-5:-1] == "loop":
sys.exit (1)
sys.exit(0)
-if len(argv[1] > 4) and argv[1][-5:-1] == "loop":
+if len(argv[1]) > 4 and argv[1][-5:-1] == "loop":
try:
isys.makeDevInode(argv[1][-5:], argv[1])
isys.losetup(argv[1], argv[2])