summaryrefslogtreecommitdiff
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* MFC rev 1.6:Brooks Davis2006-01-111-3/+1
| | | | | | | | | | | | | | | | | When removing the local domain, only do so when the result will be a host name. This is matches the documented behaviro. The previous behavior would remove the domain name even if the result retained a dot. This fixes rsh connections from a.example.com to example.com. This is also reported to fix rsh connections from host xxx to yyy.example.com. PR: 88301 Notes: svn path=/stable/5/; revision=154214
* MF6: Restore the previous state after a FILL operation inJohn Baldwin2005-12-051-8/+15
| | | | | | | properties_read(). Notes: svn path=/stable/5/; revision=153130
* Sync up to CURRENT, effectively closing:Tom Rhodes2005-06-271-1/+16
| | | | | | | PR: 76981 Notes: svn path=/stable/5/; revision=147617
* MFC: NI_WITHSCOPEID cleanupHajimu UMEMOTO2005-05-282-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/tcp_wrappers/hosts_access.c: 1.5 contrib/tcp_wrappers/socket.c: 1.8 contrib/telnet/telnetd/telnetd.c: 1.28 lib/libc/net/rcmd.c: 1.41 lib/libc/net/res_send.c: 1.50 lib/libpam/modules/pam_unix/pam_unix.c: 1.50 lib/libutil/logwtmp.c: 1.20 lib/libutil/realhostname.c: 1.18 libexec/rlogind/rlogind.c: 1.44 libexec/tftpd/tftpd.c: 1.36 release/picobsd/tinyware/login/pico-login.c: 1.6 sbin/ifconfig/af_inet6.c: 1.2 sbin/route/route.c: 1.78 usr.bin/netstat/route.c: 1.76 usr.sbin/inetd/inetd.c: 1.129 usr.sbin/lpr/common_source/net.c: 1.9 usr.sbin/lpr/lpd/lpd.c: 1.41 usr.sbin/mountd/mountd.c: 1.81 usr.sbin/ppp/ncpaddr.c: 1.16 usr.sbin/rip6query/rip6query.c: 1.7 usr.sbin/syslogd/syslogd.c: 1.143 Notes: svn path=/stable/5/; revision=146707
* MFC: Spell default correctly in a comment.Tom Rhodes2005-05-051-1/+1
| | | | Notes: svn path=/stable/5/; revision=145920
* MFC 1.8: Remove duplicated "bytes".Xin LI2005-04-181-1/+1
| | | | Notes: svn path=/stable/5/; revision=145228
* MFC:Christian Brueffer2005-02-281-1/+3
| | | | | | | | | | | | | rev. 1.10 by obrien Document when this function came into FreeBSD. rev. 1.11 by ru Scheduled mdoc(7) sweep. Notes: svn path=/stable/5/; revision=142748
* MFC:Tom Rhodes2005-01-181-2/+2
| | | | | | | | | | Various markup and spelling fixes. PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version) Notes: svn path=/stable/5/; revision=140405
* MFC: There is no humanize_number(9) manual page in FreeBSD.Pawel Jakub Dawidek2004-09-281-2/+0
| | | | | | | Approved by: re (scottl) Notes: svn path=/stable/5/; revision=135900
* MFC: Take the lastest fixes from NetBSD.Pawel Jakub Dawidek2004-09-281-63/+51
| | | | | | | Approved by: re (scottl) Notes: svn path=/stable/5/; revision=135898
* Spell FTP correctly - in this case, it is used as the name of the protocol,Peter Pentchev2004-08-061-2/+2
| | | | | | | | | not the program. Also, bump the document date. Reminded by: our resident mdoc guard (ru) Notes: svn path=/head/; revision=133210
* Add Giorgos's description of the ftp-chroot login.conf option.Peter Pentchev2004-08-061-0/+10
| | | | | | | | | Reported by: Bill Moran <wmoran@potentialtech.com> Submitted by: keramida MFC after: 2 weeks Notes: svn path=/head/; revision=133206
* Markup fixes.Ruslan Ermilov2004-07-071-16/+24
| | | | Notes: svn path=/head/; revision=131759
* Eliminate double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131539
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-0214-29/+52
| | | | Notes: svn path=/head/; revision=131504
* Humanize_number(3) is a part of libutil.Pawel Jakub Dawidek2004-05-251-0/+2
| | | | Notes: svn path=/head/; revision=129733
* You want to include libutil.h, not util.h.Tom Rhodes2004-05-251-4/+7
| | | | | | | Some minor sentence tweaking. Notes: svn path=/head/; revision=129730
* Add humanize_number(3) to libutil for formating numbers into a humanPawel Jakub Dawidek2004-05-244-4/+312
| | | | | | | | | readable form. Obtained from: NetBSD Notes: svn path=/head/; revision=129677
* Don't depend on NULL's expansion being a pointer, cast it before it is passedStefan Farfeleder2004-05-181-3/+4
| | | | | | | | | to variadic functions. Approved by: das (mentor) Notes: svn path=/head/; revision=129392
* Fix and clarify unparsable sentence.Diomidis Spinellis2004-05-111-3/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=129113
* Bring the description for login_getclassbyname in sync with the function'sDiomidis Spinellis2004-05-112-8/+28
| | | | | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks Notes: svn path=/head/; revision=129112
* Back out the "clean_environment()" function from libutil.Tim Kientzle2004-02-293-211/+4
| | | | | | | | | | Further contemplation has convinced me that this was not going to really solve the problem of environment-poisoning without raising serious administrative headaches. There must be a better way... Notes: svn path=/head/; revision=126419
* Add the clean_environment call to libutil.h also.Tim Kientzle2004-02-261-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=126299
* Add a clean_environment call to libutil.Tim Kientzle2004-02-263-4/+211
| | | | | | | | | | | | | | | | | | | | This function removes all environment variables except the ones listed on a "whitelist." The function accepts two whitelist arguments. If the first is NULL, a built-in default list will be used. This allows callers to get a variety of behaviors: * Default screening: provide NULL for both lists * Custom screening: provide a custom list for the first argument * Modified default screening: provide NULL for first arg, list of additional variables to preserve in the second arg Idea from: Jacques Vidrine MFC after: 2 weeks Notes: svn path=/head/; revision=126298
* Bump the major version on libtuil. libutil now relies on the mac_*Robert Watson2003-11-121-1/+1
| | | | | | | | | | | symbols exported by newer versions of libc, and so we want applications depending on the newer library code to be required to link against the newer libc. Discussed with: scottl, kris, imp Notes: svn path=/head/; revision=122583
* Remove __NETBSD_SYSCALLS.Tim J. Robbins2003-10-291-6/+0
| | | | Notes: svn path=/head/; revision=121668
* (mostly) Clean up some const warnings here. The code takes some libertiesPeter Wemm2003-10-261-8/+9
| | | | | | | | because it is the originator of various const strings and knows that they came from malloc. Notes: svn path=/head/; revision=121530
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.Mark Murray2003-10-1817-137/+120
| | | | Notes: svn path=/head/; revision=121193
* Remove a GCC specifig CFLAG. We should be using WARNS=? for this.Mark Murray2003-10-181-1/+1
| | | | | | | | WARNS=? is not added here at this point, because I've not tested it on enough platforms, and I don't want to break builds. Notes: svn path=/head/; revision=121192
* mdoc(7): Properly mark C headers.Ruslan Ermilov2003-09-102-2/+2
| | | | Notes: svn path=/head/; revision=119964
* style.Makefile(5)David E. O'Brien2003-08-181-1/+1
| | | | Notes: svn path=/head/; revision=119071
* Stage 3 of dynamic root support. Make all the libraries needed to runGordon Tetlow2003-08-171-0/+1
| | | | | | | | | binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified. Notes: svn path=/head/; revision=119017
* Tidy up. Sort headers.Mark Murray2003-06-1413-56/+53
| | | | Notes: svn path=/head/; revision=116344
* Backout last commit. It is redundant in -CURRENT.Murray Stokely2003-05-051-5/+1
| | | | | | | Pointed out by: David Schultz Notes: svn path=/head/; revision=114703
* Note that the idletime setting is not enforced.Murray Stokely2003-05-041-1/+5
| | | | | | | | PR: docs/40952 MFC After: 3 days Notes: svn path=/head/; revision=114675
* Document the login-backoff and login-retries capabilities.Murray Stokely2003-05-041-0/+5
| | | | | | | | PR: docs/51397 MFC After: 3 days Notes: svn path=/head/; revision=114648
* Add vmemoryuse to the list.Tom Rhodes2003-04-261-0/+1
| | | | | | | | PR: 50796 Submitted by: Dmitry Sivachenko <mitya@cavia.pp.ru> Notes: svn path=/head/; revision=114065
* Brucify.Dag-Erling Smørgrav2003-04-101-4/+8
| | | | Notes: svn path=/head/; revision=113333
* Correctly detect the case where a password entry was changed while we wereDag-Erling Smørgrav2003-04-091-2/+7
| | | | | | | | | preparing to edit it. PR: bin/50563 Notes: svn path=/head/; revision=113305
* Apply the correct fix for bin/50679: don't mess around with process groupsDag-Erling Smørgrav2003-04-091-13/+19
| | | | | | | | | | or the tty, just block selected signals in the parent like system(3) does. Many thanks to bde for his assistance in finding the correct solution. PR: bin/50679 Notes: svn path=/head/; revision=113301
* Band-aid for the "^C kills the editor" problem. I haven't yet found theDag-Erling Smørgrav2003-04-081-10/+6
| | | | | | | | | | | proper way to fix this. The way this works is to prepend "exec " to the editor command to eliminate the "shell in the middle" which prevents us from properly reawakening the editor after a SIGTSTP. PR: bin/50679 Notes: svn path=/head/; revision=113265
* The .Fn functionPhilippe Charnier2003-03-2412-31/+53
| | | | Notes: svn path=/head/; revision=112541
* Make pw_edit() use /bin/sh to interpret the EDITOR environmentDavid Schultz2003-03-171-2/+12
| | | | | | | | | | variable. PR: 48748 Reviewed by: mike (mentor) Notes: svn path=/head/; revision=112328
* Re-document unimplemented capabilities that were removed in the lastDavid Schultz2003-03-051-0/+57
| | | | | | | | | | | revision of this file, but note that they are not supported in the base system. Requested by: ache Reviewed by: ache, mike (mentor) Notes: svn path=/head/; revision=111891
* - Document the fact that we now use pam_passwdqc(8) to checkDavid Schultz2003-03-031-58/+16
| | | | | | | | | | | | | | | password quality, not login.conf(5). - Move warnexpire and warnpasswd from the ``Accounting Limits'' section to ``Authentication'', and nix everything else in the former section. The accounting knobs are not available in the base system, and the subset of them available in ports should be documented in the ports' manpages. PR: 47960 Reviewed by: mike (mentor), doc Notes: svn path=/head/; revision=111791
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-1/+3
| | | | Notes: svn path=/head/; revision=111285
* Now return NULLified struct in case of empty config fileAndrey A. Chernov2003-01-271-6/+9
| | | | | | | | | | | (previous variant return NULL pointer for both empty file case and error case, so caller can't sense error properly). It not affect existen programs because property_find() now returns NULL for both NULL pointer and NULLified struct. Notes: svn path=/head/; revision=109916
* Handle read errorsAndrey A. Chernov2003-01-271-3/+6
| | | | Notes: svn path=/head/; revision=109915
* Add (unsigned char) cast to ctype macrosAndrey A. Chernov2003-01-191-13/+31
| | | | | | | Handle NULL return from malloc and strdup Notes: svn path=/head/; revision=109515
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-1/+1
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470