Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | oops, add pwd!=NULL check to previous fix | ache | 1999-04-24 | 1 | -11/+17 |
| | |||||
* | Switch to user UID/GID before checking/reading its ~/.login_conf | ache | 1999-04-24 | 1 | -1/+14 |
| | | | | - some NFSes have root read access disabled | ||||
* | add MLINKS for two functions used from login_auth.c | ache | 1999-04-24 | 2 | -19/+20 |
| | | | | comment out unused functions from login_auth.3 | ||||
* | If given host.domain:nn[.nn], trimdomain() now reduces it to | brian | 1999-04-09 | 2 | -10/+54 |
| | | | | host:nn[.nn] (if the domain is the same as the local one). | ||||
* | bcopy -> memmove | brian | 1999-04-08 | 1 | -2/+2 |
| | | | | Suggested by: archie | ||||
* | Tidy up trimdomain() and document it. | brian | 1999-04-07 | 3 | -12/+76 |
| | | | | Don't truncate one byte short of the passed length. | ||||
* | Handle hostnames up to MAXHOSTNAMELEN-1 in length. | brian | 1999-04-07 | 1 | -10/+9 |
| | | | | | | Use bcopy() instead of strcpy() to handle potentially overlapping regions. Un-obscure/complicate some code. | ||||
* | Put parenthesis around sizeof args. | brian | 1999-04-07 | 1 | -6/+6 |
| | | | | | | Allow for host names up to MAXHOSTNAMELEN - 1 in length. Prompted by: bde | ||||
* | Add realhostname() - a function to correctly lookup | brian | 1999-04-06 | 4 | -3/+190 |
| | | | | | a name by address and ensure that the name resolves back to the original address. | ||||
* | Get the pid right if a stale lock file exists. | brian | 1999-03-11 | 1 | -4/+4 |
| | | | | | PR: 10531 Submitted by: Lawrence D. Lopez <lopez@cisco.com> | ||||
* | Fixed bitrot in synopsis (some const poisoning had not reached here). | bde | 1999-03-05 | 2 | -4/+4 |
| | |||||
* | Removed occurrences of consecutive repeated words (such as "the the"). | alex | 1999-02-12 | 1 | -2/+2 |
| | |||||
* | Declare setproctitle() as printf0-like. | bde | 1998-12-16 | 1 | -2/+2 |
| | |||||
* | Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This is | bde | 1998-12-16 | 1 | -8/+7 |
| | | | | | | | | an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly. Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds. | ||||
* | oops. Fix indentation of the 'for' loop I just added. | dillon | 1998-12-13 | 1 | -18/+18 |
| | |||||
* | Handle the race condition where vipw may lock a password file which has | dillon | 1998-12-13 | 1 | -6/+22 |
| | | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence. | ||||
* | Better document the file format, add in support for nested {}'s in multi-line | jkh | 1998-11-22 | 2 | -8/+28 |
| | | | | property values. | ||||
* | Since vfork() was changed to fork(), we have to pass errno back from the | des | 1998-10-20 | 1 | -3/+6 |
| | | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu> | ||||
* | correct prototype. | jkh | 1998-10-14 | 1 | -2/+2 |
| | |||||
* | Calls one or more of malloc(), warn(), err(), syslog(), execlp() or | des | 1998-10-13 | 1 | -3/+3 |
| | | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde | ||||
* | Now take stdio.h out of files that don't require it. | jkh | 1998-10-09 | 9 | -17/+10 |
| | |||||
* | Update docs to match interface change. | jkh | 1998-10-09 | 1 | -4/+4 |
| | |||||
* | o move path in libutil.h to paths.h | jkh | 1998-10-09 | 3 | -10/+11 |
| | | | | | o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface. | ||||
* | Take the path spec back out. | jkh | 1998-10-09 | 1 | -4/+1 |
| | |||||
* | All these have to include stdio.h now. | jkh | 1998-10-09 | 4 | -4/+8 |
| | |||||
* | remove stdio.h include; I forgot Bruce's cardinal rule that header files | jkh | 1998-10-08 | 1 | -2/+1 |
| | | | | | | shouldn't include other ones (which, unfortunately, is also a hellish rule since he broke interfaces like sysctl this way by requiring undocumented header files to be included just in order to be able to use them now - SIGH!). | ||||
* | Add some rudimentary documentation for my new functions. | jkh | 1998-10-08 | 4 | -2/+182 |
| | |||||
* | Correct a build error that got past my build test somehow. | jkh | 1998-10-08 | 2 | -0/+3 |
| | |||||
* | Add a simple mechanism for reading property lists from files (which | jkh | 1998-10-07 | 4 | -2/+300 |
| | | | | | | | I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm | ||||
* | Replace memory leaking instances of realloc with non-leaking reallocf. | imp | 1998-09-16 | 1 | -2/+2 |
| | | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but... | ||||
* | Print uid/gid as u_long per bde suggestion | ache | 1998-07-29 | 1 | -5/+5 |
| | |||||
* | cast arg to (long) to match format | ache | 1998-07-28 | 1 | -3/+3 |
| | |||||
* | Cast pid_t to int for sprintf. | brian | 1998-06-10 | 1 | -2/+2 |
| | | | | Pointed out by: Charlie Sorsby <crs@hgo.net> | ||||
* | Spelling corrections. | jkoshy | 1998-06-06 | 3 | -10/+10 |
| | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> | ||||
* | Add missing uu_lock_txfr() prototype | ache | 1998-06-05 | 1 | -1/+2 |
| | |||||
* | If using NetBSD syscalls the rtprio syscall doesn't exist, so just | jb | 1998-06-03 | 1 | -1/+7 |
| | | | | don't try to use it to set special priorities. | ||||
* | Trim a domain part for wtmp as same as showed by "netstat -r". | amurai | 1998-06-01 | 2 | -3/+42 |
| | | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp> | ||||
* | Add uu_lock_txfr() to transfer ownership of a successful | brian | 1998-05-28 | 4 | -10/+62 |
| | | | | uu_lock() to another process. | ||||
* | Allow setting of idle or realtime processing priorities per | steve | 1998-05-25 | 1 | -5/+22 |
| | | | | | | | login class. PR: 6636 Submitted by: Jason Young <doogie@forbidden-donut.anet-stl.com> | ||||
* | Oops, revert part of a diff that wasn't supposed to have been committed. | dg | 1998-04-28 | 1 | -2/+2 |
| | |||||
* | Cache the results of the ps_strings sysctl so that it doesn't have to be | dg | 1998-04-28 | 1 | -10/+12 |
| | | | | redone for every call of setproctitle(). | ||||
* | Fixed function types in synopsis. | bde | 1998-03-23 | 1 | -10/+10 |
| | | | | | | Commented out docmentation of nonexistent authenticate() and auth_timesok(). authenticate() seems to be obsolete and auth_timesok() never existed in FreeBSD. | ||||
* | .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq | charnier | 1998-03-19 | 1 | -3/+3 |
| | |||||
* | Change tty-related capability names to match the implementation ("ttys.", | fenner | 1998-02-21 | 1 | -10/+10 |
| | | | | not "tty."). | ||||
* | MF22: add login_auth.3 to man page list. | jkh | 1998-02-18 | 1 | -2/+2 |
| | |||||
* | Correctly document h and m modifiers to the time format. | steve | 1998-02-14 | 1 | -1/+3 |
| | | | | | PR: 5739 Submitted by: Matthew Cashdollar <mattc@rfcnet.com> | ||||
* | Fixed bitrot in the prototype for logwtmp(). | bde | 1998-01-16 | 1 | -2/+2 |
| | |||||
* | Make a couple of the stat flags dependent on the sys/stat.h header file | jb | 1998-01-09 | 1 | -1/+9 |
| | | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-) | ||||
* | Make the login_getclassbyname prototype match reality. | steve | 1997-11-05 | 1 | -2/+2 |
| | | | | PR: 4838 | ||||
* | Statisize usage(). | charnier | 1997-10-27 | 1 | -1/+4 |
| |