| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
support, fmtcheck() should not accept format strings that contain
floating-point formats.
|
| |
|
|
|
|
|
|
|
| |
adjunct maps are used. One symtom of this bug is sshd saying:
login_get_lastlog: Cannot find account for uid X
when logging in. The problem here is caused by an incorrect reuse of the rv
variable when previous values are needed later.
|
|
|
|
|
| |
updated to use getvfsbyname(3) or the vfs.conflist sysctl since a
long time, except mount_smbfs(8) which has just been fixed.
|
|
|
|
|
|
|
| |
null pointer constant. (The latter may be an integer constant, which
is not correct here.)
Submitted by: Stefan Farfeleder
|
|
|
|
| |
Reviewed by: ru
|
| |
|
|
|
|
|
|
| |
pthreads.
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
|
| |
|
|
|
|
| |
vslock() failure).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).
There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".
Tested on: i386 sparc64
|
|
|
|
|
| |
Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com>
PR: bin/63283
|
|
|
|
|
|
|
| |
Approved by: simon(mentor)
Reviewed by: ru
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
PR: docs/60044
|
|
|
|
|
|
|
|
| |
These files had tags at the start of the file
(incorrect, removed), and after the copyright
notices (correct).
Approved by: rwatson (mentor)
|
|
|
|
| |
internal mutex and CV.
|
|
|
|
|
|
| |
Don't decrement it twice when it is taken.
Reported by: kris
|
|
|
|
| |
Reported by: kris
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
overridden by the threads library to provide a userland version
of non-pshared semaphores and cancellation points. Also add
a sem_timedwait().
The libc version of semaphores always uses kernel semaphores
regardless of whether pshared is set or not. When threads are
not present, it is difficult to get sem_wait() or sem_timedwait()
to do the right thing (since pthread_cond_timedwait() and
pthread_cond_wait() are stubs in libc and just return immediately).
|
|
|
|
|
|
|
|
| |
http://citeseer.nj.nec.com/fluhrer01weaknesses.html and
http://citeseer.nj.nec.com/531224.html .
PR: 61126
Submitted by: Jeff Ito <jeffi@rcn.com>
|
|
|
|
|
| |
PR: bin/2442
Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
|
|
|
|
|
| |
non-threaded won't build. The cancellation point support should be
further discussed.
|
|
|
|
|
|
| |
For pshared semaphore, this commit still does not enable cancellation
point, I think there should be a pthread_enter_cancellation_point_np
for libc to implement a safe cancellation point.
|
|
|
|
| |
Submitted by: bde
|
|
|
|
|
|
|
| |
- sem_*(3) manpages were repocopied from libc_r.
Reviewed by: deischen
Repocopy by: markm
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
getpwent(3) or getpwuid(3) when using NIS adjunct maps. The bug was
present in the internal `nis_passwd' function. The lookup in the
adjunct map used the name passed into `nis_passwd', however no name
was of course supplied by getpwent or getpwuid. Correctly use the
name from the `struct pwd' that was found instead.
PR: bin/59962
Submitted by: Gabriel Gomez <ggomez@fing.edu.uy>
|
| |
|
|
|
|
|
|
| |
directory.
Special thanks to: valgrind
|
|
|
|
| |
Noticed by: wollman
|
|
|
|
|
|
| |
PR: 20528
Submitted by: bms (original version)
Requested by: mike (awhile ago)
|
|
|
|
|
|
|
| |
more than NGROUP elements without providing the opportunity to
setgroups to fail and correctly return error and set errno.
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
|
| |
by a parent that is a session leader (e.g., login shell) by ignoring
SIGHUP in before calling fork(2) and then restoring SIGHUP's action
after setsid(3). Based on the patch by Martin Kammerhofer
<mkamm@gmx.net>.
PR: bin/25462
Reviewed by: bde, alex.neyman@auriga.ru
|
|
|
|
|
|
|
| |
words "pattern" and "test"; this should make it easier
to find with "man -k"
Approved by: gordon (mentor)
|
| |
|
|
|
|
| |
characters '*', '?' and '['.
|
|
|
|
| |
lacking the issetugid() and utrace() syscalls.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
used, and refer to <osreldate.h> to get userland date.
Submitted by: ru
|
|
|
|
|
|
|
|
|
|
|
|
| |
gethostname()'s old and new signatures without requiring a library
bump. Note that programs which called gethostname() with a negative
argument were already broken, since the same type conversion was done
by the old implementation. Add a note in the Makefile so that whoever
next bumps the libc revision will delete the kluge at the same time
(as it will no longer be necessary). This is only operative on 64-bit
platforms.
Submitted by: marcel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when the buffer is not long enough to hold the current host name.
POSIX does not standardize error returns for gethostname(), so it
doesn't matter which one we use, but ENAMETOOLONG is at least a little
more intuitive, and mi suggests the existence of prior art. I've been
running with this change for a while on my home machine with no
effect. At the same time, I've updated the prototype for
gethostname() to use the correct standard type (size_t) for the
namelen argument.
All of the in-tree callers fall into one of the following categories:
1) Call perror() or equivalent when gethostname() fails.
2) Ignore gethostname()'s return value entirely, potentially resulting
in data corruption if the buffer is too small.
3) Fall back to a (possibly sensible) default value if gethostname()
fails.
Many of the callers I examined shows signs of confusion about the
correct sizing of the host name buffer. gethostname(3) now has more
information about this, as well as updated standards information.
PR: 48114
Submitted by: mi (in part)
|
|
|
|
|
|
| |
PR: standards/54634
Reviewed by: das
Approved by: jake (mentor)
|
| |
|
|
|
|
|
|
| |
thread library.
Reviewed by: deischen
|
|
|
|
| |
in the standard. Defer to gettimeofday(2) for error indications.
|
|
|
|
|
|
| |
(if present), even on error.
Pointed out by: Wojtek Lerch, on the Austin Group mailing-list
|