Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.sbin/user



Module Name:    src
Committed By:   christos
Date:           Wed Jul 27 19:08:42 UTC 2005

Modified Files:
        src/usr.sbin/user: user.c

Log Message:
Patches from Liam Foy:

- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD

While I am there:

- KNF (long wrapped lines, and spaces after void casts).
- Factor out some common code.
- Fix error messages.
        1. Consistently capitalize them.
        2. Fix err->errx and warn->warnx inappropriate uses.
        3. Use regerror where appropriate.
        4. Don't call warn()/err() to report errors after you trashed errno
           by calling other syscalls. Save and restore the errno instead,
           or in the warn() case, call warn() first.
- Fix size_t - int, uid_t - int confusion.
- Pass lint


To generate a diff of this commit:
cvs rdiff -r1.81 -r1.82 src/usr.sbin/user/user.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index