about summary refs log tree commit diff
path: root/locale/programs/localedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/localedef.c')
-rw-r--r--locale/programs/localedef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
index 6d37a0e398..fbcd04a67b 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;