(__open_catalog): Set catalog->status to "nonexisting" if failed to
authordrepper <drepper>
Sun, 2 May 1999 11:04:15 +0000 (11:04 +0000)
committerdrepper <drepper>
Sun, 2 May 1999 11:04:15 +0000 (11:04 +0000)
open the file.

catgets/open_catalog.c

index 4b619e4..aefa34f 100644 (file)
@@ -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)
     {