diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-30 08:55:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-30 08:55:59 +0000 |
commit | 25f95dee2d63e4a774636b9d7ecf53eaac4ea69c (patch) | |
tree | 33c75866a44a1c0efbcbcab745d28896d2775c00 /docs/busybox.net | |
parent | 040f440262b4a435f21f85f782c2d97ecfd6a8e5 (diff) | |
download | busybox-25f95dee2d63e4a774636b9d7ecf53eaac4ea69c.tar.gz |
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
Diffstat (limited to 'docs/busybox.net')
0 files changed, 0 insertions, 0 deletions