summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Add utility functions for checking if a given kernel module is loaded,des2006-02-184-2/+180
| | | | and loading it.
* - Add a note that passing NULL to pidfile_write(), pidfile_remove() andpjd2006-01-281-3/+13
| | | | | | | pidfile_close() functions is safe. This possibility is used in example code. - Cast pid_t to int. Requested by: yar
* Teach openpty() how to deal with pts.cognet2006-01-261-0/+45
|
* Restore use of strncpy(), as there is later unconditional terminationrwatson2006-01-161-1/+1
| | | | | | of the string, and reliance on the returned pointer. Found by: bde (tm)
* Replace strncpy() with strlcpy() when parsing login time limit stringsrwatson2006-01-161-1/+1
| | | | | | | | | | | from /etc/login.conf, or an unterminated string buffer could result. Probably, login_times.c should reject excessively long time strings as unparseable, rather than truncating, which might render an invalid string valid. Found with: Coverity Prevent (tm) Reviewed by: csjp MFC after: 3 days
* Fix typo in comment.rwatson2006-01-161-1/+1
| | | | MFC after: 3 days
* Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, dropcsjp2005-12-301-0/+5
| | | | in an external reference to mac_set_proc(3).
* Restore the previous state after a FILL operation in properties_read()jhb2005-11-281-8/+15
| | | | | | | | | | | rather than forcing the state to LOOK. If we are in the middle of parsing a line when we have to do a FILL we would have lost any token we were in the middle of parsing and would have treated the next character as being at the start of a new line instead. PR: kern/89181 Submitted by: Antony Mawer gnats at mawer dot org MFC after: 1 week
* Fix prototype.ru2005-11-241-1/+1
|
* Fix markup, grammar and spelling.ru2005-11-181-32/+44
|
* When removing the local domain, only do so when the result will be abrooks2005-10-051-3/+1
| | | | | | | | | 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. Reviewed by: ceri (at least the concept)
* Pidfiles should be created with permission preventing users from openingpjd2005-09-161-1/+1
| | | | | | | them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions. Pointed out by: green
* Add a family of functions for reliable pidfiles handling.pjd2005-08-244-3/+498
| | | | | Idea from: jmg Discussed on: arch@
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 definesume2005-05-132-13/+3
| | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
* Properly spell default in a comment.trhodes2005-04-221-1/+1
|
* Remove duplicated "bytes".delphij2005-04-101-1/+1
| | | | | Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl] PR: 79747
* Fix grammatical issue.trhodes2005-02-271-4/+4
| | | | Submitted by: ceri
* Use ~/.login_conf when discussing a user's local file.trhodes2005-02-261-1/+1
| | | | Suggested by: ru
* Reword previous commit to be a bit more correct and provide more information.trhodes2005-02-251-5/+13
| | | | Inspiried by: ru
* Make it more obvious that cap_mkdb(1) is required to rebuild the database.trhodes2005-02-231-0/+7
| | | | | PR: 76981 Submitted by: Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org>
* Expand *n't contractions.ru2005-02-133-4/+4
|
* Reflect the reality; only crypt(3) uses /etc/auth.confru2005-01-211-1/+1
| | | | for the time being.
* Sort sections.ru2005-01-203-10/+10
|
* Scheduled mdoc(7) sweep.ru2005-01-111-2/+2
|
* Various markup and spelling fixes.trhodes2004-12-291-2/+2
| | | | | PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
* Grammar in a comment.ru2004-12-181-1/+1
|
* Backout manual page updates.pjd2004-09-261-19/+27
| | | | Requested by: ru
* Take the lastest fixes from NetBSD.pjd2004-09-252-90/+70
| | | | Obtained from: NetBSD
* There is no such manual page in FreeBSD.pjd2004-09-161-2/+0
|
* Document when this function came into FreeBSD.obrien2004-08-211-1/+3
|
* Spell FTP correctly - in this case, it is used as the name of the protocol,roam2004-08-061-2/+2
| | | | | | not the program. Also, bump the document date. Reminded by: our resident mdoc guard (ru)
* Add Giorgos's description of the ftp-chroot login.conf option.roam2004-08-061-0/+10
| | | | | | Reported by: Bill Moran <wmoran@potentialtech.com> Submitted by: keramida MFC after: 2 weeks
* Markup fixes.ru2004-07-071-16/+24
|
* Eliminate double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-0214-29/+52
|
* Humanize_number(3) is a part of libutil.pjd2004-05-251-0/+2
|
* You want to include libutil.h, not util.h.trhodes2004-05-251-4/+7
| | | | Some minor sentence tweaking.
* Add humanize_number(3) to libutil for formating numbers into a humanpjd2004-05-244-4/+312
| | | | | | readable form. Obtained from: NetBSD
* Don't depend on NULL's expansion being a pointer, cast it before it is passedstefanf2004-05-181-3/+4
| | | | | | to variadic functions. Approved by: das (mentor)
* Fix and clarify unparsable sentence.dds2004-05-111-3/+3
| | | | MFC after: 2 weeks
* Bring the description for login_getclassbyname in sync with the function'sdds2004-05-112-8/+28
| | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks
* Back out the "clean_environment()" function from libutil.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...
* Add the clean_environment call to libutil.h also.kientzle2004-02-261-0/+2
| | | | MFC after: 2 weeks
* Add a clean_environment call to libutil.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
* Bump the major version on libtuil. libutil now relies on the mac_*rwatson2003-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
* Remove __NETBSD_SYSCALLS.tjr2003-10-291-6/+0
|
* (mostly) Clean up some const warnings here. The code takes some libertiespeter2003-10-261-8/+9
| | | | | because it is the originator of various const strings and knows that they came from malloc.
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.markm2003-10-1817-137/+120
|
* Remove a GCC specifig CFLAG. We should be using WARNS=? for this.markm2003-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.
OpenPOWER on IntegriCloud