mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 22:28:43 +08:00
Update to FreeBSD head 2016-08-23
Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
This commit is contained in:
@@ -65,7 +65,7 @@ _setnethtent(int f, struct netent_data *ned)
|
||||
{
|
||||
|
||||
if (ned->netf == NULL)
|
||||
ned->netf = fopen(_PATH_NETWORKS, "r");
|
||||
ned->netf = fopen(_PATH_NETWORKS, "re");
|
||||
else
|
||||
rewind(ned->netf);
|
||||
ned->stayopen |= f;
|
||||
@@ -91,7 +91,7 @@ getnetent_p(struct netent *ne, struct netent_data *ned)
|
||||
char line[BUFSIZ + 1];
|
||||
|
||||
if (ned->netf == NULL &&
|
||||
(ned->netf = fopen(_PATH_NETWORKS, "r")) == NULL)
|
||||
(ned->netf = fopen(_PATH_NETWORKS, "re")) == NULL)
|
||||
return (-1);
|
||||
again:
|
||||
p = fgets(line, sizeof line, ned->netf);
|
||||
|
Reference in New Issue
Block a user