mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
25f95dee2d
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 |
||
---|---|---|
.. | ||
Config.in | ||
dmesg.c | ||
fbset.c | ||
fdflush.c | ||
fdformat.c | ||
fdisk.c | ||
freeramdisk.c | ||
fsck_minix.c | ||
getopt.c | ||
hexdump.c | ||
hwclock.c | ||
losetup.c | ||
Makefile | ||
Makefile.in | ||
mkfs_minix.c | ||
mkswap.c | ||
more.c | ||
mount.c | ||
nfsmount.c | ||
nfsmount.h | ||
pivot_root.c | ||
rdate.c | ||
swaponoff.c | ||
umount.c |