about summary refs log tree commit diff
path: root/catgets
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-02 11:05:14 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-02 11:05:14 +0000
commit4e720dd60d95bee7af035604010c054ec1b2dc7a (patch)
tree0d4807706a2df70660c8d100f5d080352ab25c2b /catgets
parenta97d1494f7dc5ec6978aa234b15faff29a4607ee (diff)
downloadglibc-4e720dd60d95bee7af035604010c054ec1b2dc7a.tar.gz
glibc-4e720dd60d95bee7af035604010c054ec1b2dc7a.tar.xz
glibc-4e720dd60d95bee7af035604010c054ec1b2dc7a.zip
Update.
1999-05-02  H.J. Lu  <hjl@gnu.org>

	* timezone/zic.c (dolink): Remove the symlink destination first.

	* catgets/open_catalog.c (__open_catalog): Set catalog->status
	to "nonexisting" if failed to open the file.
Diffstat (limited to 'catgets')
-rw-r--r--catgets/open_catalog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/catgets/open_catalog.c b/catgets/open_catalog.c
index 4b619e49e9..aefa34f3fa 100644
--- a/catgets/open_catalog.c
+++ b/catgets/open_catalog.c
@@ -183,7 +183,10 @@ __open_catalog (__nl_catd catalog)
 
   /* Avoid dealing with directories and block devices */
   if (fd < 0)
-    goto unlock_return;
+    {
+      catalog->status = nonexisting;
+      goto unlock_return;
+    }
 
   if (__fxstat (_STAT_VER, fd, &st) < 0)
     {