hush/util-linux
Eric Andersen 25f95dee2d Lars Ekman writes:
When using "losetup" the device is always setup as Read-Only.

(I have only tested with the -o flag, but looking at the code the
 problem seems general)

The problem is the "opt" variable in "losetup.c" that is reused in
the "set_loop()" call. Clear it before the call and everything is OK;

  opt = 0;         /* <-------- added line */
  if (delete)
    return del_loop (argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE;
  else
    return set_loop (argv[optind], argv[optind + 1], offset, &opt)
      ? EXIT_FAILURE : EXIT_SUCCESS;
}

Best Regards,
Lars Ekman
2003-07-30 08:55:59 +00:00
..
Config.in There should be only one instance of CONFIG_FEATURE_AUTOWIDTH 2003-07-26 09:33:16 +00:00
dmesg.c Ronny L Nilsson writes: 2003-07-30 06:52:33 +00:00
fbset.c Use standard types 2003-07-14 19:32:40 +00:00
fdflush.c Major coreutils update. 2003-03-19 09:13:01 +00:00
fdformat.c Add the fdformat utility, based on a patch from Kent Robotti, 2003-07-05 07:51:31 +00:00
fdisk.c last_patch100 from vidz updating fdisk to 2.12pre 2003-07-30 08:40:37 +00:00
freeramdisk.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
fsck_minix.c Major coreutils update. 2003-03-19 09:13:01 +00:00
getopt.c Major coreutils update. 2003-03-19 09:13:01 +00:00
hexdump.c Major coreutils update. 2003-03-19 09:13:01 +00:00
hwclock.c Major coreutils update. 2003-03-19 09:13:01 +00:00
losetup.c Lars Ekman writes: 2003-07-30 08:55:59 +00:00
Makefile Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
Makefile.in Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
mkfs_minix.c Major coreutils update. 2003-03-19 09:13:01 +00:00
mkswap.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
more.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
mount.c Error out early if people try to build mount with nfs support 2003-07-22 08:25:37 +00:00
nfsmount.c Major coreutils update. 2003-03-19 09:13:01 +00:00
nfsmount.h Silence a silly warning 2001-03-09 22:17:59 +00:00
pivot_root.c Major coreutils update. 2003-03-19 09:13:01 +00:00
rdate.c Very minor rdate updates 2003-07-22 08:26:05 +00:00
swaponoff.c Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
umount.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00