Yaroslav Tykhiy
be89d8067c
Document the quirks of ~/.login_conf and LOGIN_MECLASS.
2007-06-14 09:33:37 +00:00
Yaroslav Tykhiy
2e376efd52
Improve mdoc(7) markup.
2007-06-14 07:31:59 +00:00
Yaroslav Tykhiy
a742982378
Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf.
2007-06-14 06:42:49 +00:00
Dag-Erling Smørgrav
4b5b992bba
Nit: avoid shadowing truncate(2) with a local variable.
2007-05-23 12:09:33 +00:00
Dag-Erling Smørgrav
400f772943
Fix stupid braino in previous commit.
2007-05-23 10:06:03 +00:00
Dag-Erling Smørgrav
d75d56060e
If (flags & O_TRUNC), don't truncate the file until we've successfully
...
locked it.
MFC after: 3 weeks
2007-05-23 08:12:34 +00:00
Daniel Eischen
419ecd5dee
Bump library versions in preparation for 7.0.
...
Ok'd by: kan
2007-05-21 02:49:08 +00:00
Dag-Erling Smørgrav
b31d5b56ec
strlcpy() may be faster than snprintf(), but it is less portable, and this
...
is not performance critical code anyway. Also, avoid using strlen() to
obtain information which we already have.
MFC after: 3 weeks
2007-05-11 11:10:05 +00:00
Dag-Erling Smørgrav
4d09ed1e67
Fix typo.
...
Submitted by: Bård Skaflestad <bardsk@math.ntnu.no>
2007-05-10 18:15:30 +00:00
Dag-Erling Smørgrav
8f9085389f
Well gag me with a spoon... I'm so used to working at high WARNS levels
...
that I make stupid fundamental mistakes like this when I don't.
2007-05-10 15:01:42 +00:00
Dag-Erling Smørgrav
b252bedcc9
Remove superfluous unexpanded RCS tag.
2007-05-10 14:56:07 +00:00
Dag-Erling Smørgrav
3884dc6768
Use flopen(3).
...
MFC after: 3 weeks
2007-05-10 14:54:53 +00:00
Dag-Erling Smørgrav
3dea593400
DTRT when O_NONBLOCK is specified.
...
MFC after: 3 weeks
2007-05-10 14:52:57 +00:00
Dag-Erling Smørgrav
9667055264
I'm tired of seeing this done incorrectly and non-portably, so add a
...
flopen(3) function which reliably opens and locks a file.
MFC after: 3 weeks
2007-05-10 14:43:31 +00:00
Yaroslav Tykhiy
f855462a24
Fix one kind of style(9) bug and a typo in a comment.
...
Tested with: md5(1)
2007-05-01 18:50:33 +00:00
Warner Losh
ee7093a640
Remove California Regent's clause 3, per letter
2007-01-09 01:02:06 +00:00
Tom Rhodes
d3dc0c9de4
Fix a typo: "the give login class" to "the given login class."
...
PR: 75577
Submitted by: Nobuyuki Koganemaru
2006-11-05 19:00:08 +00:00
Ruslan Ermilov
f0d43ae993
Fix markup in previous revision.
2006-10-10 08:15:08 +00:00
Tom Rhodes
5e058b334c
Add information on how to escape a literal colon in a value or name.
...
PR: 101262
2006-10-09 22:35:02 +00:00
Ruslan Ermilov
ad136d1e29
Revise markup in recently added manpages.
2006-09-30 10:34:13 +00:00
Ruslan Ermilov
a73a3ab56b
Markup fixes.
2006-09-17 21:27:35 +00:00
Thomas Quinot
3a1d9c271b
Minor comment fix.
2006-09-08 08:14:32 +00:00
Thomas Quinot
71219ddbd1
(pw_copy): Handle the case of a malformed line in master.passwd
...
(copy it silently, do not dereference NULL pointer).
PR: bin/102848
Reviewed by: security-officer (cperciva)
MFC after: 1 week
2006-09-04 15:09:21 +00:00
Yaroslav Tykhiy
6599d1e129
Recognize the existence of auth' and
auth-type'
...
capabilities but tell they do nothing in the base system.
This is a late responce to
http://docs.freebsd.org/cgi/mid.cgi?ED759F1DC5ADD74592DD063B1EDEDAF803ACD2B5
.
Obtained from: OpenBSD (wording; with minor corrections)
2006-08-23 09:54:46 +00:00
Yaroslav Tykhiy
74d580d770
style.Makefile(5) is good for our eyes.
2006-07-27 12:36:46 +00:00
Warner Losh
d5fbc8f429
Note the convention that humanize_number follows.
...
Add 'engineering' numbers to table.
2006-07-15 20:53:36 +00:00
Maxim Konovalov
a07b02ef92
o Add missed comma, xref kld(4).
2006-07-12 14:33:52 +00:00
Brian Somers
25b5a928f7
Remove some unused variables
2006-06-23 01:42:03 +00:00
Maxim Konovalov
613c94ac78
o Typo: ownship -> ownership.
...
Obtained from: DragonFlyBSD
2006-06-17 07:25:58 +00:00
Shunsuke Akiyama
b3c87f5c78
Specify default path for SHLIBDIR before bsd.own.mk does.
...
This fix shared library installed correct place.
2006-06-11 09:14:06 +00:00
Xin LI
db31b8ae3c
Don't build IPv6 support if we have choosen not to have it.
2006-06-09 18:11:29 +00:00
Xin LI
aa5c5263bc
- Add include for libutil.h and string.h for prototype.
...
- Cast the rvalue to be compared with the result of
strlen() to size_t.
2006-05-25 04:01:04 +00:00
Hajimu UMEMOTO
794063c03f
Bump library majro version for gethostbyaddr(3).
2006-05-21 15:15:21 +00:00
Christian Brueffer
b208d15b48
Document how the backoff delay is calculated.
...
Submitted by: markus
MFC after: 3 days
2006-04-19 17:46:27 +00:00
John-Mark Gurney
4d5e876be3
use pwrite to always write at the begining of the file.. If multiple calls
...
to pidfile_write happen, the pidfile will have nul characters prepended
due to the cached file descriptor offset...
Reviewed by: scottl
MFC after: 3 days
2006-04-11 23:10:02 +00:00
Giorgos Keramidas
ef608a6008
Use intmax_t' instead of plain
int' for pid_t casts.
...
Useful tips from: ru, bde
Approved by: pjd
MFC after: 3 days
2006-03-04 15:20:28 +00:00
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