Return to utmp.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / gen |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.9, 2009/02/05 23:52:55 | version 1.10, 2011/10/15 23:00:02 | ||
---|---|---|---|
|
|
||
if (ut == NULL) { | if (ut == NULL) { | ||
struct stat st; | struct stat st; | ||
off_t numentries; | off_t numentries; | ||
if ((ut = fopen(utfile, "r")) == NULL) | if ((ut = fopen(utfile, "re")) == NULL) | ||
return NULL; | return NULL; | ||
if (fstat(fileno(ut), &st) == -1) | if (fstat(fileno(ut), &st) == -1) | ||
goto out; | goto out; |