mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Clean up internal fopen uses
No need to ever not use c and e.
This commit is contained in:
@@ -48,7 +48,7 @@ internal_setent (void)
|
||||
|
||||
if (stream == NULL)
|
||||
{
|
||||
stream = fopen ("/etc/aliases", "re");
|
||||
stream = fopen ("/etc/aliases", "rce");
|
||||
|
||||
if (stream == NULL)
|
||||
status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL;
|
||||
@@ -258,7 +258,7 @@ get_next_alias (const char *match, struct aliasent *result,
|
||||
|
||||
first_unused = cp;
|
||||
|
||||
listfile = fopen (&cp[9], "r");
|
||||
listfile = fopen (&cp[9], "rce");
|
||||
/* If the file does not exist we simply ignore
|
||||
the statement. */
|
||||
if (listfile != NULL
|
||||
|
||||
Reference in New Issue
Block a user