diff options
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nss_files/files-alias.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nss/nss_files/files-alias.c b/nss/nss_files/files-alias.c index 2d6e15c1d8..b18361f66c 100644 --- a/nss/nss_files/files-alias.c +++ b/nss/nss_files/files-alias.c @@ -382,10 +382,12 @@ _nss_files_getaliasent_r (struct aliasent *result, char *buffer, size_t buflen, /* If the last use was not by the getent function we need the position the stream. */ if (last_use != getent) - if (fsetpos (stream, &position) < 0) - status = NSS_STATUS_UNAVAIL; - else - last_use = getent; + { + if (fsetpos (stream, &position) < 0) + status = NSS_STATUS_UNAVAIL; + else + last_use = getent; + } if (status == NSS_STATUS_SUCCESS) { |