equal
deleted
inserted
replaced
|
1 Patch originated from https://lists.berlios.de/pipermail/cdrecord-developers/2014-January/000128.html |
|
2 This bug is already fixed in version 3.01a22. |
|
3 |
|
4 --- cdrtools-3.00/libsiconv/sic_nls.c.orig st led 8 18:08:37 2014 |
|
5 +++ cdrtools-3.00/libsiconv/sic_nls.c st led 8 18:10:09 2014 |
|
6 @@ -288,11 +288,10 @@ |
|
7 char *p; |
|
8 FILE *f; |
|
9 |
|
10 - if ((f = fopen(name, "r")) != NULL) |
|
11 - return (f); |
|
12 - |
|
13 + /* If the name contains slash, try to open it directly. If it fails, do |
|
14 + * not attempt anything else. */ |
|
15 if (strchr(name, '/')) |
|
16 - return ((FILE *)NULL); |
|
17 + return (fopen(name, "r")); |
|
18 |
|
19 if (ins_base == NULL) |
|
20 (void) sic_base(); |