summaryrefslogtreecommitdiffstats
path: root/command-stubs/losetup-stub
diff options
context:
space:
mode:
Diffstat (limited to 'command-stubs/losetup-stub')
-rwxr-xr-xcommand-stubs/losetup-stub2
1 files changed, 1 insertions, 1 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])