diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-12-11 22:52:56 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-12-11 22:52:56 +0000 |
| commit | 07588bf4216c2ff77fc3fb42dbbecf4817ba23da (patch) | |
| tree | 3e50ec14f659f3b4067d58282810ee24eaf03bb0 /lib | |
| parent | a36ffd695576e4f52476359b2f5d4fe459dbc36c (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/locale/collate.c | 2 | ||||
| -rw-r--r-- | lib/libc/locale/setrunelocale.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/collate.c b/lib/libc/locale/collate.c index 676d41cc082f..56513f4b9ccf 100644 --- a/lib/libc/locale/collate.c +++ b/lib/libc/locale/collate.c @@ -135,7 +135,7 @@ __collate_load_tables_l(const char *encoding, struct xlocale_collate *table) (void)strcat(buf, "/"); (void)strcat(buf, encoding); (void)strcat(buf, "/LC_COLLATE"); - if ((fp = fopen(buf, "r")) == NULL) + if ((fp = fopen(buf, "re")) == NULL) return (_LDP_ERROR); if (fread(strbuf, sizeof(strbuf), 1, fp) != 1) { diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index 927b200a2604..49e6f6e6548b 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -129,7 +129,7 @@ __setrunelocale(struct xlocale_ctype *l, const char *encoding) (void) strcat(name, encoding); (void) strcat(name, "/LC_CTYPE"); - if ((fp = fopen(name, "r")) == NULL) + if ((fp = fopen(name, "re")) == NULL) return (errno == 0 ? ENOENT : errno); if ((rl = _Read_RuneMagi(fp)) == NULL) { |
