Fix bug where lid and gid core after failing to open a file.
This commit is contained in:
parent
8f7e3d0aa6
commit
b341be17d7
2 changed files with 17 additions and 0 deletions
3
devel/id-utils/files/patch-sum
Normal file
3
devel/id-utils/files/patch-sum
Normal file
|
@ -0,0 +1,3 @@
|
|||
$NetBSD: patch-sum,v 1.1 1999/08/01 09:20:27 ross Exp $
|
||||
|
||||
MD5 (patch-aa) = 1a7616c548f27f367c8ada0ff1d49aa0
|
14
devel/id-utils/patches/patch-aa
Normal file
14
devel/id-utils/patches/patch-aa
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- src/lid.c.orig Sun Aug 1 02:08:35 1999
|
||||
+++ src/lid.c Sun Aug 1 02:09:38 1999
|
||||
@@ -563,7 +563,10 @@
|
||||
maybe_relative_file_name (file_name, *flinkv++, cw_dlink);
|
||||
gid_FILE = fopen (file_name, "r");
|
||||
if (gid_FILE == 0)
|
||||
- error (0, errno, "can't open `%s'", file_name);
|
||||
+ {
|
||||
+ error (0, errno, "can't open `%s'", file_name);
|
||||
+ continue;
|
||||
+ }
|
||||
|
||||
line_number = 0;
|
||||
while (fgets (&line[1], sizeof (line), gid_FILE))
|
Loading…
Reference in a new issue