[BACK]Return to local_passwd.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / passwd

Diff for /src/usr.bin/passwd/local_passwd.c between version 1.40 and 1.41

version 1.40, 2009/10/27 23:59:41 version 1.41, 2013/01/18 11:13:38
Line 130 
Line 130 
         }          }
         if (i >= 4)          if (i >= 4)
                 fputc('\n', stderr);                  fputc('\n', stderr);
         pfd = open(_PATH_MASTERPASSWD, O_RDONLY, 0);          pfd = open(_PATH_MASTERPASSWD, O_RDONLY | O_CLOEXEC, 0);
         if (pfd < 0 || fcntl(pfd, F_SETFD, FD_CLOEXEC) == -1)          if (pfd < 0)
                 pw_error(_PATH_MASTERPASSWD, 1, 1);                  pw_error(_PATH_MASTERPASSWD, 1, 1);
   
         /* Update master.passwd file and rebuild spwd.db. */          /* Update master.passwd file and rebuild spwd.db. */

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41