device = find_unused_loop_device();
if (device == NULL)
        return -1;
if (verbose)
        printf("Loop device is %s\n", device);
if (argc == optind) {
        printf("%s\n", device);
        return 0;
}
file = argv[optind];

Somehow... argc == optind condition is false, and instead of exiting the
program, we go into "show" mode on the just detected loop device, which
fails, as it is a free one and there is nothing to show.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850184

Title:
  losetup -f broken in 2.0.6-1ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1850184/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to