diff options
Diffstat (limited to 'locale/programs/localedef.c')
-rw-r--r-- | locale/programs/localedef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c index 6d37a0e..fbcd04a 100644 --- a/locale/programs/localedef.c +++ b/locale/programs/localedef.c @@ -305,7 +305,7 @@ cannot `stat' locale file `%s'"), { long int n; n = read (fd, read_ptr, left); - if (n == 1) + if (n == -1) error (5, errno, _("cannot read locale file `%s'"), fname); read_ptr += n; |