[BACK]Return to utmp.c CVS log [TXT][DIR] 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.

Diff for /src/lib/libc/gen/utmp.c between version 1.9 and 1.10

version 1.9, 2009/02/05 23:52:55 version 1.10, 2011/10/15 23:00:02
Line 61  getutent(void)
Line 61  getutent(void)
         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;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb <webmaster@jp.NetBSD.org>