summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* mdoc(7) police: simplify bogus ``.Ql Fl'' constructs.Ruslan Ermilov2001-03-161-33/+33
|
* o To support new EA interface with explicit namespaces, introduce twoRobert Watson2001-03-151-0/+2
| | | | | | | | | | | utility functions which convert between string namespace names and numeric constants used by the interface. Right now, two namespaces are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and EXTATTR_NAMESPACE_USER ("user"). These functions are used by various userland EA utilities, rather than hard coding the routines all over the place. Obtained from: TrustedBSD Project
* Document the lock and unlock commands. This fixes a segmentation fault.Dima Dorfman2001-03-141-0/+10
| | | | | PR: 25187 Approved by: nik
* Document the lock and unlock commands.Dima Dorfman2001-03-141-0/+32
| | | | | PR: 25187 Approved by: nik
* Use the right format string for printing ULONG_MAX.David Malone2001-03-051-2/+2
|
* Switch from using rand() or random() to a stronger, more appropriate PRNGKris Kennaway2001-03-051-19/+2
| | | | | | (random() or arc4random()) Reviewed by: bde
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-2/+2
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-012-17/+21
|
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-162-2/+2
|
* Fix typo: s/memberhip/membership/Peter Wemm2001-01-021-1/+1
| | | | Submitted by: Peter Avalos <pavalos@theshell.com>
* Convert to use the <sys/queue.h> macros rather than fiddling with the queueBen Smithurst2000-12-292-4/+4
| | | | | | structure internals. Reviewed by: markm
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-272-1/+3
|
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
|
* Make the comment generated in /etc/pw.conf match realityDoug Barton2000-12-181-1/+1
| | | | | PR: misc/23451 Submitted by: Ben Rosengart, ben@narcissus.net
* * Fix a long line that I introduced in the last commitDoug Barton2000-12-171-2/+3
| | | | | * Backslash escape non-alphanumeric chars in the login name so that perl doesn't choke on things like '$'.
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
|
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-1/+1
| | | | Use _PATH_* where where possible.
* Use correct macro for path nameAlexey Zelkin2000-11-221-1/+1
| | | | PR: docs/13218
* If a user is in the database, rmuser ought to be able to remove them.Doug Barton2000-11-211-42/+11
| | | | | | | | Address this by using getpwnam(), thus killing several birds with the same stone. My fix is slightly more aggressive than the originators. :) PR: misc/22278
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-203-17/+17
|
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-5/+5
|
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-12/+2
|
* Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h soMurray Stokely2000-11-081-0/+3
| | | | | | | that applications know how large of a buffer they must allocate before calling property_find(). Also added a $FreeBSD$ tag while I'm here. Approved by: jkh
* Fix problems people were having with large -O levels with GCC andBrian Feldman2000-10-271-7/+6
| | | | | | | | | | getting libutil/libcrypt to work properly. I've determined that GCC thinks it can inline all functions, including weak-symboled ones, if it feels like it. Create a new stub.c and move any stubs there to prevent inlining. Thanks to jdp and William S. Duncanson for helping me finally find the problem.
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-065-31/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* Constify the arg to logout(3). It is const-safe.Peter Wemm2000-09-041-1/+1
| | | | (cosmetic: drop some "register" qualifications too.)
* Move setproctitle() from libutil to libc (after a repo-copy)Brian Somers2000-09-021-1/+0
| | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter
* Add weak symbol pragma for crypt_set_format().Jeroen Ruigrok van der Werven2000-08-231-0/+6
| | | | Approved by: green
* Stick login_setcryptfmt() in its own file to make pulling in ofBrian Feldman2000-08-232-13/+44
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-08-224-3/+36
| | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
* Complete migration of aliases file to /etc/mail/aliases.Gregory Neil Shapiro2000-08-131-1/+1
| | | | | The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster have been contacted so those may be updated as well.
* Move test for -w flag outside of the code dealing with -D (defaults).David Nugent2000-07-201-2/+2
| | | | | | | This should cause -w's argument not to be ignored in the usermod case, so it will affect modification of the user's password instead of using the pw.conf (or internal default=no '*') password method. PR: bin/11168
* Allow -g with an empty argument in the -D case. This allows -g "" to setDavid Nugent2000-07-201-5/+8
| | | | | no default group (and thus fall back to user-based groups instead). PR: bin/5717
* Fix another missed case where usermod would not set the "modified" flag:David Nugent2000-07-201-3/+6
| | | | | | -h - to set no password. But only mark modified if the account is not already locked (i.e. first char of crypt password field is '*'). PR: bin/19999
* Catch up to the fact that we now have tcsh in the tree.David Nugent2000-07-161-1/+2
|
* Support propogation of file flags when building a homedir from theDavid Nugent2000-07-131-6/+17
| | | | | | | skeleton directory. sprintf() -> snprintf() cleanup. PR: bin/8756 Submitted by: "Nickolay N. Dudorov" <nnd@itfs.nsk.su>
* Don't call warn() without a format string.Kris Kennaway2000-07-121-1/+1
|
* Fix breakage introduced by bypassing update for additional 'mod'David Nugent2000-07-031-0/+1
| | | | | | | functionality when nothing had actually changed; -d changes would not set the 'something had changed flag'. Actually test for a change in homedir. PR: bin/19649
* Don't dereference NULL in the userdel case.David Nugent2000-06-261-1/+1
|
* Localize ctype too.Andrey A. Chernov2000-06-242-3/+3
| | | | Add weekday to showuser expired fields
* Localize time/date.Andrey A. Chernov2000-06-225-23/+27
| | | | | Use ISO 8601 date in logs. Fix wrong argument type in ctype functions.
* Fix obvious braino in assignment statement. usermod -g should work again.David Nugent2000-06-181-1/+1
| | | | | PR: 17877 Submitted by: pius@zyan.com
* Be a little more strict about handling command line args. This allows user andDavid Nugent2000-06-181-4/+6
| | | | | | group names like 'help' 'mod' 'user' 'group' etc. to work correctly without requiring the -n style invocation. PR: misc/17069
* Fix a long-standing bug in the rename case previously masked by another bugDavid Nugent2000-06-181-2/+10
| | | | just fixed in .db file updating.
* Second and hopefully final fix to .db sync when renaming a user; we must runDavid Nugent2000-06-181-4/+12
| | | | | | | a full reindex in this case to remove the old record. #ifdef -u capability since this is available on FreeBSD only. PR: bin/16418 Problem pointed out by: Masachika ISHIZUKA <ishizuka@ish.org>
* Fix db syncronization when username is changed with -l under usermod.David Nugent2000-06-061-1/+1
| | | | | | | | pw(8) was calling pwd_mkdb -u oldusername instead of newusername, so the update appears to have failed until the next full pwd_mkdb syncronization. PR: bin/16418
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Fix a memory leak with lc->lc_cap in login_close().Tim Vanderhoek2000-05-211-0/+1
| | | | PR: bin/17084
* Use an MD5 checksum to test for file changes; the previous methodSheldon Hearn2000-04-122-3/+10
| | | | | | | | | of using file mtimes could result in chpasss(1) erroneously detecting that no changes were made for non-interactive edits. PR: 4238 Reported by: Jens Schweikhardt <schweikh@noc.dfn.de> Submitted by: Daniel Hagan <dhagan@cs.vt.edu>