mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Input files are text, not binary
This commit is contained in:
parent
6362a51fe8
commit
c6d77698d6
@ -1622,7 +1622,7 @@ main(int argc, char *argv[])
|
|||||||
case 'x':
|
case 'x':
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
if ((in = fopen(argv[0], "rb")) == 0)
|
if ((in = fopen(argv[0], "r")) == 0)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: unable to open composition exclusion file %s\n",
|
"%s: unable to open composition exclusion file %s\n",
|
||||||
prog, argv[0]);
|
prog, argv[0]);
|
||||||
@ -1638,7 +1638,7 @@ main(int argc, char *argv[])
|
|||||||
} else {
|
} else {
|
||||||
if (in != stdin && in != NULL)
|
if (in != stdin && in != NULL)
|
||||||
fclose(in);
|
fclose(in);
|
||||||
if ((in = fopen(argv[0], "rb")) == 0)
|
if ((in = fopen(argv[0], "r")) == 0)
|
||||||
fprintf(stderr, "%s: unable to open ctype file %s\n",
|
fprintf(stderr, "%s: unable to open ctype file %s\n",
|
||||||
prog, argv[0]);
|
prog, argv[0]);
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user