Bruce Evans
1643f03d5f
Fixed namespace pollution related to `warn' in libc (but not in other
...
libraries or for other members of the err() family).
This fixes world breakage in bc and rcs/* for NOSHARED worlds.
2001-08-29 13:52:27 +00:00
Dima Dorfman
03c32490dd
There shuldn't be whitespace before a question mark.
2001-08-27 09:34:39 +00:00
Ruslan Ermilov
f0200e9cf1
mdoc(7) police: removed whitespace at EOL.
2001-08-27 08:37:35 +00:00
Ruslan Ermilov
ab1adff6a9
mdoc(7) police: markup and spelling fixes.
2001-08-27 08:26:57 +00:00
Ruslan Ermilov
0fa666e5e5
mdoc(7) police: removed whitespace at EOL, sorted SEE ALSO xrefs.
2001-08-27 08:12:37 +00:00
Ruslan Ermilov
b711601269
mdoc(7) police: markup nits.
2001-08-27 08:01:01 +00:00
Maxim Sobolev
fee4285612
Remove grammatical bogon.
2001-08-27 08:00:15 +00:00
Mark Murray
a41ad3fca9
Introduce a "noroot_ok" option to make this module ignore authentications
...
to a non-superuser if required.
2001-08-26 18:09:00 +00:00
Mark Murray
f96b705fa7
Introduce better logging, error reporting and use of login_cap data.
2001-08-26 18:05:35 +00:00
Mark Murray
76f4a6fd79
Add extra logging detail. This needs a more general solution.
2001-08-26 17:57:44 +00:00
Mark Murray
76ed168a7a
Adjust dependancies and build order. PAM needs RPC.
2001-08-26 17:49:51 +00:00
Mark Murray
3d55a6c083
Big module makeover; improve logging, standardise variable names,
...
introduce ability to change passwords for both "usual" Unix methods
and NIS.
2001-08-26 17:41:13 +00:00
Andrey A. Chernov
b0eeb07b5b
Cosmetique fixes from bde
2001-08-26 10:38:29 +00:00
Robert Watson
4b7e521b26
o s/violate/override/ Capabilities are part of the system policy, not
...
an exception to it.
Submitted by: tmm
Obtained from: TrustedBSD Project
2001-08-25 14:37:01 +00:00
Brian Somers
cb526d28ce
Rename the DIAGNOSTICS section to RETURN VALUES and describe the
...
return values a little more. Specifically, mention that a return
of 0 from NgRecvData() and NgRecvMsg() means the socket has been
closed.
Suggested by: jkh
2001-08-24 21:39:27 +00:00
Matthew Dillon
5cb74fd363
Ok, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the same
...
semantics as PROT_XXX vs VM_PROT_XXX separating user-space defines from
kernel defines).
2001-08-24 19:45:59 +00:00
Matthew Dillon
5ccdd64f42
Oops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX. Properly
...
document minherit().
2001-08-24 19:43:45 +00:00
Matthew Dillon
dbad546ba7
Update the mmap.2 and minherit.2 manual pages. Add a short explanation and
...
referal from mmap to minherit for MAP_INHERIT. Fully document the
minherit.2 manual page (because frankly, my dear, however you think it
currently works is almost certainly wrong!). I may soon re-implement
MAP_COPY because I believe we can support it properly now, but I will have
to call it something else and that is for a later time.
2001-08-24 19:28:00 +00:00
Brian Somers
fd048a1c8a
Explain what the return value from NgRecvMsg() and NgRecvData() means,
...
specifically that 0 means the socket has been closed.
2001-08-24 14:52:05 +00:00
Andrey A. Chernov
f0e093f298
Fd is macro too, so use \&Fd
2001-08-24 11:12:58 +00:00
Andrey A. Chernov
aa0b534660
Fildes -> Fd too (started from big letter)
2001-08-24 11:05:11 +00:00
Andrey A. Chernov
a5b1af6c71
Change
...
start means ...
to
.Fa l_start
means ...
2001-08-24 10:59:32 +00:00
Sheldon Hearn
56b38b7bc7
Fix up English from previous 3 revisions.
...
There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'.
2001-08-24 10:36:29 +00:00
Peter Wemm
6f8c6a6977
Make ps -M corefile work again. This has been broken for quite some time.
...
kvm_proclist() was aborting when it saw the ithreads with no pgrp.
2001-08-24 09:43:44 +00:00
Peter Wemm
f85f304006
Dynamically adjust to the value of KERNBASE in a crashdump, with
...
a fallback for old kernels without the "kernbase" symbol.
2001-08-24 08:53:30 +00:00
Kenneth D. Merry
b915499708
Remove a duplicate "that".
...
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
2001-08-24 02:24:58 +00:00
Dima Dorfman
dae32f31ab
begin executed --> being executed
...
Obtained from: NetBSD
2001-08-24 00:18:37 +00:00
David Greenman
dfa902ee24
Killed reference to MAP_INHERIT which is not supported in FreeBSD.
2001-08-23 22:39:52 +00:00
Andrey A. Chernov
471b172744
Now we implement l_len<0 per POSIX, describe it.
2001-08-23 19:00:34 +00:00
Andrew Gallatin
c18092b2fb
Bail if we go beyond the directory size, not just if we hit it.
...
Certain ISO fs's (like the one for 4.4-RC1 disc1 on alpha)
trigger this, and we end up opening a null file name. This causes us to get
a false match for "kernel.ko" when it does not exist.
2001-08-23 17:08:26 +00:00
Andrey A. Chernov
f0d5097e06
Cosmetique: correct English in comments
2001-08-23 14:49:02 +00:00
Andrey A. Chernov
bb0871a73f
Rephrasing prev. commit a bit.
2001-08-23 09:55:10 +00:00
Andrey A. Chernov
21c6d67fad
Describe EOVERFLOW, EOPNOTSUPP and reaction to negative l_len
2001-08-23 09:42:30 +00:00
Ruslan Ermilov
265c01df49
mdoc(7) police: Fixed broken xrefs.
2001-08-22 14:16:31 +00:00
Andrey A. Chernov
2d2857f480
Document new EINVAL, EOVERFLOW cases. Sort ERRORS
2001-08-21 21:44:48 +00:00
Dima Dorfman
1794af5592
Don't claim to be mp(3).
2001-08-21 20:05:39 +00:00
Dima Dorfman
2c0dd4d134
Use .In, .Ux, and .Rv where appropriate. Also consistently call this
...
a "function" instead of a "routine".
Submitted by: ru
2001-08-21 19:32:47 +00:00
Dima Dorfman
ccbe835258
Expand the ?: construct into an if/else.
...
Submitted by: nectar
2001-08-21 19:27:07 +00:00
Dima Dorfman
c9fa8f40fe
The setprogname() function sets the name of the program to be the last
...
component of the progname argument.
2001-08-21 18:49:58 +00:00
Dima Dorfman
f7bec57b78
Fix style bug.
2001-08-21 18:46:33 +00:00
Ruslan Ermilov
c45f3b47c8
Fixed warnings.
2001-08-21 17:28:39 +00:00
Jacques Vidrine
80578ef3c9
Pass the pointy hat, please.
...
Submitted by: ru
2001-08-21 17:16:32 +00:00
Jacques Vidrine
dbdb228cf7
setprogname() should set __progname to the last component of the given
...
path.
2001-08-21 16:55:34 +00:00
Doug Rabson
d2cb5f3137
Make sure stack is aligned to 16 bytes.
2001-08-21 16:53:23 +00:00
Ruslan Ermilov
d86293dbea
Added TFTP support.
...
Submitted by: Joe Clarke <marcus@marcuscom.com>
MFC after: 2 weeks
2001-08-21 16:25:38 +00:00
Ruslan Ermilov
04c3e33949
Close the "IRC DCC" security breach reported recently on Bugtraq.
...
Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
2001-08-21 11:21:08 +00:00
Peter Wemm
868d3ce781
Rebuild libcrypto.so.1 and libssl.so.1 from 4.2-RELEASE, but this time
...
without the silly librsaINTL.so and/or librsaUSA.so dependencies.
4.2-RELEASE appears to be after the demolition of the librsa* stuff, so
I'm not sure where ps got these binaries from. Anyway, this makes old
binaries work again since we dont ship librsaINTL.so and/or librsaUSA.so
in the compat dists. I believe RELENG_4 is affected still too.
2001-08-21 07:48:58 +00:00
Kenneth D. Merry
4fb9d38429
Fix some style inconsistencies introduced in rev 1.10, as well as some
...
other inconsistencies that I missed in my review of rev 1.7. Also fix
a cut-n-paste error from an earlier revision.
2001-08-21 05:23:37 +00:00
Brian Somers
f68e0a68d8
Make the copyright consistent.
...
Previously approved by: Charles Mott <cmott@scientech.com>
2001-08-20 22:57:33 +00:00
Brian Somers
778de35906
Handle snprintf() returning < 0 (not just -1)
...
MFC after: 2 weeks
2001-08-20 15:44:17 +00:00
Brian Somers
6d3e1426db
Better snprintf() handling.
...
Prompted by: bde
2001-08-20 15:43:14 +00:00
Brian Somers
5f32890558
Handle snrintf overflows.
...
Spotted by: bde
2001-08-20 13:44:13 +00:00
Kris Kennaway
6dac8ac9e5
Mark some functions as __printflike() and/or taking const char * arguments
...
instead of char *.
MFC after: 2 weeks
2001-08-20 12:53:36 +00:00
Brian Somers
2449bf28ad
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 12:50:21 +00:00
Mark Murray
47965f01dd
Add 'try_mapped_pass' standard option.
...
Asked for by: lukeh@PADL.COM
2001-08-20 12:43:19 +00:00
Brian Somers
3c321a686f
Handle snprintf() returning -1
...
MFC after: 2 weeks
2001-08-20 12:41:36 +00:00
Brian Somers
a53a9f6906
Handle snrintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 12:31:13 +00:00
Brian Somers
7806546c39
Handle snprintf() returning -1
...
MFC after: 2 weeks
2001-08-20 12:06:42 +00:00
Mark Murray
5adb5c82e3
No functional changes, but:
...
o unifdef AUTHENTICATE. We have never compiled this code, and its
doubtful it will even work in this case.
o Style changes (some ansification, some comment updating)
o Diff reduction and code style merging with crypto telnet.
2001-08-20 12:04:53 +00:00
Kris Kennaway
4870a3d346
Say goodbye to libss, which somehow managed to crouch hidden in the tree
...
for long after it was used.
2001-08-19 21:32:52 +00:00
Jason Evans
204e56e381
Fix logic errors in pthread_cond_wait() and pthread_cond_timedwait() that
...
could cause deadlock after interruption due to a signal.
Reviewed by: deischen
2001-08-19 20:05:42 +00:00
Andrey A. Chernov
c5981656ea
Add about rewind+errno, describe ESPIPE, minor formatting.
2001-08-19 08:24:50 +00:00
Kenneth D. Merry
884539f701
Implement compute_stats() in terms of devstat_compute_statistics(). This
...
gets rid of the duplicated code in compute_stats().
Add a new DSM_SKIP statistic type for devstat_compute_statistics() that
causes the subsequent variable argument to be skipped.
Thanks to Sergey Osokin for coding up my idea/code fragment.
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
2001-08-18 05:46:59 +00:00
Dima Dorfman
e6063dd1a6
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED
...
socket option for the Unix domain. It's weaker than the
socket option (this only returns the uid and gid, while the
socket opt. can return the entire group list), and is
implemented mostly for compatibility with OpenBSD.
2001-08-17 22:09:15 +00:00
Dima Dorfman
06a4bf789c
Xref raise(3).
2001-08-17 21:04:42 +00:00
Ruslan Ermilov
e822b43712
mdoc(7) police: collapse multiple spaces.
2001-08-17 15:25:55 +00:00
Ruslan Ermilov
e1aaa82284
mdoc(7) police: fixed the fatal.
2001-08-17 15:18:49 +00:00
Andrey A. Chernov
98aa5183a2
Simplify overflow calculations a bit
2001-08-17 11:08:56 +00:00
Andrey A. Chernov
4a9f1ee4e5
Remove extra check, already done in upper level caller, i.e. in
...
_fseeko()
2001-08-17 10:43:03 +00:00
Andrey A. Chernov
5fdaf178ae
Mention ftell & ftello in EOVERFLOW section too.
2001-08-17 10:29:09 +00:00
Andrey A. Chernov
b98ba4224b
Add more overflow checks in case of fseek()
2001-08-17 10:22:03 +00:00
Andrey A. Chernov
68ce9bfb10
Don't clear "we have offset" flag even if long is overflow for fseek(),
...
there is no harm to have it, it will reduce next call efforts.
2001-08-17 10:06:46 +00:00
Andrey A. Chernov
71b5a4326d
fseek.c:
...
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()
2001-08-17 09:57:11 +00:00
Ruslan Ermilov
9916c5d299
mdoc(7) police: replace \*(Ba' with a simple
|', it's handled specially.
2001-08-16 11:09:00 +00:00
Jason Evans
8588aeec8c
Fix a bug in canceling joining threads.
...
Do not detach canceled threads.
Reported by: Arno Klaassen <arno@heho.snv.jussieu.fr>
Collaboration with: deischen
2001-08-16 06:31:32 +00:00
Joseph Koshy
2f46ebcdb7
If the string specifying the allowed options starts with a leading `:',
...
`getopt(3)' should not print a warning for missing argument values.
PR: bin/29625
Reviewed by: mikeh
MFC after: 1 week
2001-08-16 03:27:03 +00:00
Dima Dorfman
7bc6682520
Explain the relation of getchar() to getc() in less words.
...
Submitted by: ru
2001-08-16 03:09:33 +00:00
Mark Murray
b30a6aedc2
Remove out-of-date "cannot be exported from USA" notice.
2001-08-15 20:25:16 +00:00
Andrey A. Chernov
74b2772824
Use smarter overflow tests
...
Suggested by: bde
2001-08-15 20:10:38 +00:00
Mark Murray
ca0bdcdd29
Document the no_warn option.
2001-08-15 20:05:33 +00:00
Mark Murray
b5507a38bc
Fix a couple of cross-references to reflect the reality of the module.
2001-08-15 20:03:26 +00:00
Andrey A. Chernov
d9e3eff33a
1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
...
"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."
Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.
2) Catch few possible off_t overflows.
Reviewed by: arch discussion
2001-08-15 02:07:47 +00:00
Yaroslav Tykhiy
a2a0a4dc2a
Use the ".Rv" mdoc(7) macro where appropriate.
...
Reviewed by: ru
2001-08-14 14:20:35 +00:00
Yaroslav Tykhiy
2fa4b9b3d6
Isolate the ERRORS section from the RETURN VALUES one.
...
Reviewed by: ru
2001-08-14 14:10:01 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Peter Wemm
2b618987fe
Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(
...
It was foiled because of dynamic copy relocations that caused compile-time
space to be reserved in .bss and at run time a blob of data was copied to
that space and everything used the .bss version.. The problem is that
the space is reserved at compile time, not runtime... So we *still* could
not change the size of FILE. Sigh. :-(
Replace it with something that does actually work and really does let us
make 'FILE' extendable. It also happens to be the same as Linux does in
glibc, but has the slight cost of a pointer. Note that this is the
same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has.
Fortunately, actual references to stdin/out/err are not all that common
since we have implicit stdin/out/err-using versions of functions
(printf() vs. fprintf()).
2001-08-13 21:48:44 +00:00
Ruslan Ermilov
ed2879a5cf
mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.
2001-08-13 17:07:40 +00:00
Ruslan Ermilov
d013e3f544
mdoc(7) police: s/NetBSD/.Nx/ where appropriate.
2001-08-13 17:00:36 +00:00
Ruslan Ermilov
04da392069
mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.
2001-08-13 16:43:02 +00:00
Ruslan Ermilov
c5e7e03a14
Spell "FreeBSD" with "F" and "BSD" in uppercase.
2001-08-13 16:33:00 +00:00
Ruslan Ermilov
8af1452cf8
Removed duplicate VCS ID tags, as per style(9).
2001-08-13 14:06:34 +00:00
Ian Dowse
cd0ada9d94
Cross-reference io(4).
2001-08-12 21:16:41 +00:00
Mark Murray
37ee76af52
Remove the WANT_INSECURE_OPIE option - it is now a default. This is not
...
nearly as ominous as it sounds, and it allows OPIE to be used over SSH
and on xterms.
Requested by: ache
Discussed on: -security
2001-08-12 18:47:56 +00:00
Hajimu UMEMOTO
8e67a60053
Fill _res.sort_list with harmless entry. sortlist for IPv6/IPv4
...
is stored in _res_ext.sort_list, and sortlist for IPv4 is stored in
_res.sort_list for backward compatibility. However, both sort_list's
are maintaind by just one index _res.nsort. So, when IPv6 address is
specified to sortlist, empty entry was created in _res.sort_list. It
broke sortlist facility of gethostbyname().
Discussed on users@jp.ipv6.org .
2001-08-11 15:01:12 +00:00
Mark Murray
537db85291
Fix:
...
/usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c has couple of bugs which cause:
1) xdm dumps core
2) ssh1 private key is not passed to ssh-agent
3) ssh2 RSA key seems not handled properly (just a guess from source)
4) ssh_get_authentication_connectionen() fails to get connection because of
SSH_AUTH_SOCK not defined.
PR: 29609
Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>
2001-08-11 12:37:55 +00:00
Warner Losh
e54b5dd9ff
Make the name parameter const char *.
2001-08-11 05:16:00 +00:00
Dima Dorfman
7f55e48eb1
Use .Fn, .Fa, and .Dv where appropriate.
2001-08-10 20:49:38 +00:00
Mark Murray
3938427761
Clean up this module very extensively. Fix the logging, the coding
...
standards and the option handling. This module is now much more easy
to maintain as a part of the FreeBSD tree.
2001-08-10 19:24:34 +00:00
Mark Murray
530ebf8e0a
Code clean up; make logging same as other modules and fix warnings.
2001-08-10 19:21:45 +00:00
Mark Murray
34beb374a2
General code clean-up. Sort out warnings, and make the warning and
...
logging work the same as other modules.
2001-08-10 19:18:52 +00:00