Dag-Erling Smørgrav
501092bbc8
Add utility functions for checking if a given kernel module is loaded,
...
and loading it.
2006-02-18 11:25:28 +00:00
Pawel Jakub Dawidek
560c4fc142
- Add a note that passing NULL to pidfile_write(), pidfile_remove() and
...
pidfile_close() functions is safe. This possibility is used in example code.
- Cast pid_t to int.
Requested by: yar
2006-01-28 14:13:15 +00:00
Olivier Houchard
db256336b8
Teach openpty() how to deal with pts.
2006-01-26 01:33:26 +00:00
Robert Watson
d2042d2052
Restore use of strncpy(), as there is later unconditional termination
...
of the string, and reliance on the returned pointer.
Found by: bde (tm)
2006-01-16 11:54:07 +00:00
Robert Watson
ba183db70c
Replace strncpy() with strlcpy() when parsing login time limit strings
...
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
2006-01-16 00:52:20 +00:00
Robert Watson
8e3ae6fe69
Fix typo in comment.
...
MFC after: 3 days
2006-01-16 00:28:11 +00:00
Christian S.J. Peron
111a16a8ee
Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, drop
...
in an external reference to mac_set_proc(3).
2005-12-30 06:16:20 +00:00
John Baldwin
a54bb702d7
Restore the previous state after a FILL operation in properties_read()
...
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
2005-11-28 16:30:16 +00:00
Ruslan Ermilov
877205d1d4
Fix prototype.
2005-11-24 11:29:11 +00:00
Ruslan Ermilov
6b84cd5819
Fix markup, grammar and spelling.
2005-11-18 14:21:28 +00:00
Brooks Davis
72bd741cfc
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.
Reviewed by: ceri (at least the concept)
2005-10-05 04:42:20 +00:00
Pawel Jakub Dawidek
8b28aef238
Pidfiles should be created with permission preventing users from opening
...
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
2005-09-16 11:24:28 +00:00
Pawel Jakub Dawidek
412fa8f114
Add a family of functions for reliable pidfiles handling.
...
Idea from: jmg
Discussed on: arch@
2005-08-24 17:21:38 +00:00
Ken Smith
a84020c2b9
Bump the shared library version number of all libraries that have not
...
been bumped since RELENG_5.
Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)
2005-07-22 17:19:05 +00:00
Hajimu UMEMOTO
4f10131848
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
...
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
Tom Rhodes
043d661d53
Properly spell default in a comment.
2005-04-22 23:11:57 +00:00
Xin LI
13c273c81a
Remove duplicated "bytes".
...
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
2005-04-10 12:15:25 +00:00
Tom Rhodes
9c512d4ae0
Fix grammatical issue.
...
Submitted by: ceri
2005-02-27 22:24:24 +00:00
Tom Rhodes
16814e4c71
Use ~/.login_conf when discussing a user's local file.
...
Suggested by: ru
2005-02-26 23:41:04 +00:00
Tom Rhodes
59fa1b558e
Reword previous commit to be a bit more correct and provide more information.
...
Inspiried by: ru
2005-02-25 00:32:41 +00:00
Tom Rhodes
ef8bcbfb41
Make it more obvious that cap_mkdb(1) is required to rebuild the database.
...
PR: 76981
Submitted by: Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org>
2005-02-23 22:11:59 +00:00
Ruslan Ermilov
0227791b40
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
Ruslan Ermilov
720e293ae7
Reflect the reality; only crypt(3) uses /etc/auth.conf
...
for the time being.
2005-01-21 12:07:46 +00:00
Ruslan Ermilov
24a0682c64
Sort sections.
2005-01-20 09:17:07 +00:00
Ruslan Ermilov
2d82ac3110
Scheduled mdoc(7) sweep.
2005-01-11 20:50:51 +00:00
Tom Rhodes
8f79184fe2
Various markup and spelling fixes.
...
PR: 75574
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
2004-12-29 02:18:24 +00:00
Ruslan Ermilov
9a5393ac68
Grammar in a comment.
2004-12-18 12:31:12 +00:00
Pawel Jakub Dawidek
69560edc13
Backout manual page updates.
...
Requested by: ru
2004-09-26 12:08:31 +00:00
Pawel Jakub Dawidek
bd52c9ac59
Take the lastest fixes from NetBSD.
...
Obtained from: NetBSD
2004-09-25 14:11:34 +00:00
Pawel Jakub Dawidek
8914c29937
There is no such manual page in FreeBSD.
2004-09-16 18:32:58 +00:00
David E. O'Brien
b35b4dcba7
Document when this function came into FreeBSD.
2004-08-21 03:31:17 +00:00
Peter Pentchev
b047cf9879
Spell FTP correctly - in this case, it is used as the name of the protocol,
...
not the program. Also, bump the document date.
Reminded by: our resident mdoc guard (ru)
2004-08-06 12:56:39 +00:00
Peter Pentchev
1575f75dc9
Add Giorgos's description of the ftp-chroot login.conf option.
...
Reported by: Bill Moran <wmoran@potentialtech.com>
Submitted by: keramida
MFC after: 2 weeks
2004-08-06 10:43:24 +00:00
Ruslan Ermilov
fd13236829
Markup fixes.
2004-07-07 20:25:54 +00:00
Ruslan Ermilov
30950a21e1
Eliminate double whitespace.
2004-07-03 22:30:10 +00:00
Ruslan Ermilov
1a0a934547
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
Pawel Jakub Dawidek
e27d191348
Humanize_number(3) is a part of libutil.
2004-05-25 20:11:50 +00:00
Tom Rhodes
d268591bf7
You want to include libutil.h, not util.h.
...
Some minor sentence tweaking.
2004-05-25 18:53:54 +00:00
Pawel Jakub Dawidek
23d1a17825
Add humanize_number(3) to libutil for formating numbers into a human
...
readable form.
Obtained from: NetBSD
2004-05-24 22:19:27 +00:00
Stefan Farfeleder
ec18ee18ad
Don't depend on NULL's expansion being a pointer, cast it before it is passed
...
to variadic functions.
Approved by: das (mentor)
2004-05-18 15:53:58 +00:00
Diomidis Spinellis
26eff9e85b
Fix and clarify unparsable sentence.
...
MFC after: 2 weeks
2004-05-11 11:10:09 +00:00
Diomidis Spinellis
94cf9da03c
Bring the description for login_getclassbyname in sync with the function's
...
arguments. The function has as a second argument a struct passwd * pointer,
not a directory name.
MFC after: 2 weeks
2004-05-11 11:05:26 +00:00
Tim Kientzle
09951e89e9
Back out the "clean_environment()" function from libutil.
...
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...
2004-02-29 22:13:28 +00:00
Tim Kientzle
a0a7e17219
Add the clean_environment call to libutil.h also.
...
MFC after: 2 weeks
2004-02-26 22:44:11 +00:00
Tim Kientzle
f9efe8694a
Add a clean_environment call to libutil.
...
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
2004-02-26 22:41:47 +00:00
Robert Watson
c5df72d83f
Bump the major version on libtuil. libutil now relies on the mac_*
...
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
2003-11-12 21:56:07 +00:00
Tim J. Robbins
d210c39f49
Remove __NETBSD_SYSCALLS.
2003-10-29 10:55:56 +00:00
Peter Wemm
05bcd1d098
(mostly) Clean up some const warnings here. The code takes some liberties
...
because it is the originator of various const strings and knows that they
came from malloc.
2003-10-26 03:51:47 +00:00
Mark Murray
547fa0d9b7
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
2003-10-18 10:04:16 +00:00
Mark Murray
804b0f979a
Remove a GCC specifig CFLAG. We should be using WARNS=? for this.
...
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.
2003-10-18 09:58:39 +00:00