cdrkit/icedax-segfault.patch
Harald Hoyer f7323e4f81 - fixed rhbz#255001 - icedax --devices segfaults
- fixed rhbz#249357 - Typo in wodim output
2007-09-21 09:24:38 +00:00

28 lines
682 B
Diff

--- cdrkit-1.1.6/icedax/interface.c.segf 2007-09-21 10:34:36.000000000 +0200
+++ cdrkit-1.1.6/icedax/interface.c 2007-09-21 10:35:10.000000000 +0200
@@ -611,12 +611,6 @@ static int OpenCdRom(char *pdev_name)
usal_help(stderr);
exit(NO_ERROR);
}
-
- if (global.scandevs) {
- list_devices(usalp, stdout, 0);
- exit(0);
- }
-
/* device name, debug, verboseopen */
usalp = usal_open(pdev_name, errstr, sizeof(errstr), 0, 0);
@@ -661,6 +655,11 @@ static int OpenCdRom(char *pdev_name)
dontneedgroup();
dontneedroot();
+ if (global.scandevs) {
+ list_devices(usalp, stdout, 0);
+ exit(0);
+ }
+
if (global.scanbus) {
select_target(usalp, stdout);
exit(0);