Robert Watson
195426c211
Introduce 'exempt_if_empty' option to pam_wheel(8), which bypasses the
...
group membership requirement if the group has no explicit members listed
in /etc/group. By default, this group is the wheel group; setting this
flag restores the default BSD behavior from 4.x.
Reviewed by: markm
Requested by: various
Sponsored by: DARPA, Network Associates Laboratories
2002-10-18 02:37:29 +00:00
Sam Leffler
52dee23d90
not sure if this correct, but it compiles again
2002-10-18 00:26:34 +00:00
Juli Mallett
4aba47f7ce
FD locking is not enabled anymore, so the table which contains the owner
...
of a file descriptor has NULL entries, so don't dereference the table entries
to get the owners ever -- don't print the owners when processing a thread_dump
request as a result of SIGINFO.
Reviewed by: deischen
2002-10-17 20:26:26 +00:00
Sam Leffler
c1623066ca
o ioctl DIOCGDINFO error wasn't checked
...
o memory wasn't reclaimed in certain cases
o add more msgs under #ifdef DEBUG
o rewrite tangle of for loops for clarity
NB: Open_Disk should redo how it malloc's memory so the caller can free
everything. Documentation says the caller can free the disk list to
reclaim everything but this leaks the indirect strings. Fixing this
is simple for the sysctl case but adds complexity to the fallback,
non-sysctl, case.
2002-10-17 18:34:32 +00:00
Sam Leffler
dda5b5a58a
correct arg order to strlcpy/strlcat under #ifdef alpha
2002-10-17 18:23:21 +00:00
Tim J. Robbins
0145ba86d1
Fix off-by-one error when pushing back a multibyte sequence in
...
wide character class (%l[) and wide string (%ls) conversions.
2002-10-17 13:04:00 +00:00
Tim J. Robbins
63b01047f4
Make part of the previous change clearer; check flags for SUPPRESS directly
...
instead of checking whether we're using a temporary buffer.
2002-10-17 12:06:29 +00:00
Tim J. Robbins
bd25c6f476
The field width for single-byte string conversions (%c, %s, %[) is the
...
maximum number of bytes that may be stored in the array, not the maximum
number of wide characters to read. The wording of the standard unfortunately
does not make this clear.
2002-10-17 12:02:36 +00:00
Alfred Perlstein
e6fc380cd2
de-__P()
2002-10-16 22:18:42 +00:00
Robert Drehmel
6c84d0b1a5
- Remove the lsearch() and lfind() functions and their manpage from
...
the compatibility library libcompat.
- Add new implementations of lsearch() and lfind() which conform to
IEEE Std 1003.1-2001 to libc. Add a new manual page for them and
add them to the makefile.
- Add function prototypes for lsearch() and lfind() to the search.h
header.
2002-10-16 14:29:23 +00:00
Tim J. Robbins
35739e072b
Count field width correctly for suppressed multibyte fields (%*lc,
...
%*ls, %*l[).
2002-10-16 14:07:08 +00:00
Robert Drehmel
e2830bc9e0
Remove unneeded $FreeBSD$ tags.
2002-10-16 14:05:29 +00:00
Robert Drehmel
e768c1be41
- Remove the old insque() and remque() functions and their manual
...
page from the compatibility library.
- Add new implementations of insque() and remque() which conform to
IEEE Std 1003.1-2001 to libc. Add a new manual page for them and
connect them to the build.
- Add the prototypes of insque() and remque() to the search.h
header.
2002-10-16 14:00:46 +00:00
Tim J. Robbins
6180233fd8
Set the error bit on the stream if an encoding error occurs. Improve
...
handling of multibyte sequences representing null wide characters.
2002-10-16 12:09:43 +00:00
Tim J. Robbins
9acd2d9b3c
Avoid truncating invalid wide characters that are outside the range of
...
'unsigned char'; signal an error instead.
2002-10-16 11:37:38 +00:00
Tim J. Robbins
185b9d1c2c
Add a Bugs section and note that fmtcheck() is out of sync with printf();
...
it does not recognise any of the conversions or modifiers added in C99.
2002-10-16 04:03:02 +00:00
Tim J. Robbins
927ecbf313
Add support for the XSI %C and %S formats, which are the same as %lc
...
and %ls.
2002-10-16 03:55:53 +00:00
Ian Dowse
d7cd6ba39b
Use kqueue(2) instead of poll(2) to wait for replies and timeouts
...
in the UDP RPC client code. As a side-effect, this fixes some bugs
that might prevent the RPC call from ever timing out for example
if the server keeps responding with the wrong xid. This could
probably be simplified further by using the EVFILT_TIMER filter.
2002-10-15 22:28:59 +00:00
Max Khon
19521b0699
fix typo in comments (in preparation for MFC)
...
Approved by: deischen
2002-10-15 16:40:57 +00:00
Tim J. Robbins
2fe3e5cda7
Add cross-references to the wide character counterparts of these functions.
2002-10-15 10:11:53 +00:00
Maxim Sobolev
f927dfabc9
Eliminate superfluous memory access in memcpy(3)/memmove(3).
...
Obtained from: NetBSD
MFC after: 1 week
2002-10-15 09:50:07 +00:00
Tim J. Robbins
616e099e5c
Remove stray comma at the end of the See Also list.
2002-10-15 09:49:54 +00:00
Yoshihiro Takahashi
89335c9f46
Fix to check disk geometry.
...
Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
2002-10-14 13:15:14 +00:00
Tim J. Robbins
af1c9c0e4d
Use a weak reference instead of a macro to make vfscanf an alias
...
for __vfscanf.
2002-10-14 11:18:21 +00:00
Tim J. Robbins
3a0e6ca553
Write the strvis()'d string out to the history file in history_save(),
...
not the original string. Fixes the bug where every second line of a
history file was empty.
2002-10-14 10:42:38 +00:00
Tim J. Robbins
0b78986fe2
FA, FB and FC are lead bytes according to recent Microsoft documentation.
2002-10-14 01:50:45 +00:00
Tim J. Robbins
d891f26821
Style changes. Mainly removing excessive whitespace and parens.
2002-10-14 01:46:18 +00:00
Kris Kennaway
56373a5196
Dump in $TMPDIR if !setugid, and use mode 0644 instead of 0666.
...
MFC after: 2 weeks
2002-10-13 11:23:31 +00:00
Kris Kennaway
61bdf123c3
Ignore TMPDIR if the application is setugid.
...
MFC after: 2 weeks
2002-10-13 11:22:16 +00:00
Tim J. Robbins
57185ffa08
FreeBSD's libedit does not include NetBSD's readline emulation code.
...
Remove references to it from the Authors and History sections.
2002-10-13 08:46:57 +00:00
Kris Kennaway
8c12ff22b4
Use buffer-safe string functions for paranoia.
2002-10-12 22:03:22 +00:00
Kris Kennaway
5060afe8bc
Zero memory after malloc. This stops sysinstall from dumping core
...
during disk probing with malloc debugging enabled.
MFC after: 1 week
2002-10-12 22:01:57 +00:00
Mike Barcroft
54e4e385de
Add restrict type-qualifier.
2002-10-12 16:13:41 +00:00
Andrey A. Chernov
8a093dade3
Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other places
2002-10-12 11:31:07 +00:00
Tim J. Robbins
419c442678
Describe the restrictions on seeking on wide character streams, and also
...
point out that fseek() clears the ungetwc() buffer.
2002-10-12 09:22:25 +00:00
Tim J. Robbins
bd26dcd103
Fix a typo causing incorrect formatting for negative values in some locales
...
(at least the French ones), a memory leak upon successful termination, a
pointer arithmetic error causing heap corruption, and an off-by-one bug
causing incorrect amounts of padding at the right of the value.
2002-10-12 04:38:35 +00:00
Tim J. Robbins
2e9212d966
Save errno around calls to free(); at least some code paths clobber it
...
and we are not interested in any errors it may report.
2002-10-11 23:31:50 +00:00
Tim J. Robbins
d0d87283e9
Document the kind of format string strfmon() expects. Sync the Errors
...
section with reality.
2002-10-11 23:17:17 +00:00
Tim J. Robbins
2621915fa7
Use the new struct lconv members to determine how to format international
...
monetary values.
2002-10-11 23:08:03 +00:00
Tim J. Robbins
40a48101d3
Non-negative amounts should not have an extra space in front of them
...
when the `(' flag is used.
2002-10-11 23:04:59 +00:00
Tim J. Robbins
284d56227c
"Left precision" and "right precision" are not flags, but separate parts
...
of the format string that appear after the field width.
2002-10-11 22:59:22 +00:00
Peter Wemm
74a4ba21f7
Zap the early-adopter transition aid before we get into serious
...
5.0-R territory, as threatened. This only affects antique 5.0
systems that have not had a 'make world' done for well over a year.
2002-10-11 22:38:17 +00:00
Ruslan Ermilov
890b32ee41
Build kerberized versions of the PAM library, and install them
...
into corresponding distributions during "make release". (This
also cleans the "slib" distribution up from the .o files.)
PR: misc/43825 (inspired by)
2002-10-11 14:17:09 +00:00
Maxim Konovalov
65edeb2358
Do not allow empty GIDs for non-NIS entries.
...
MFC after: 2 weeks
2002-10-11 11:35:30 +00:00
Tim J. Robbins
972baa3747
Add a UTF-8 encoding method, which will eventually replace the antique
...
"UTF2" method. Although UTF-8 and the old UTF2 encoding are compatible
for 16-bit characters, the new UTF-8 implementation is much more strict
about rejecting malformed input and also handles the full 31 bit range
of characters.
2002-10-10 22:56:18 +00:00
Jens Schweikhardt
b2aa8b2a98
Document that write(2) et al can return EROFS for attempts to write the
...
disk label area.
PR: 43891
Submitted by: Diomidis D. Spinellis <dds@istlab.dmst.aueb.gr>
MFC after: 3 days
2002-10-10 19:16:10 +00:00
Robert Drehmel
5d38e85ded
Fix another spelling mistake.
2002-10-10 14:16:08 +00:00
Robert Drehmel
73fbee5795
Correct a spelling mistake.
2002-10-10 14:14:44 +00:00
Tim J. Robbins
ecab372b7e
Add cross-references to wide character versions of these functions.
2002-10-10 04:31:57 +00:00
Tim J. Robbins
ce04c11001
Cross-reference between byte and wide-character stdio functions. Remove
...
references to fputwc() and fgetwc() being macros while I'm at it.
2002-10-10 04:12:40 +00:00