| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This
works now that kernel fd passing has been fixed to accept a bit of
sloppiness because of this ABI repair.
lots of discussion with kettenis
|
|
|
|
|
| |
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because
of alignment; ok kettenis hshoexer
|
|
|
|
| |
an extensive discussion with otto, kettenis, millert, and hshoexer
|
| |
|
|
|
|
|
|
| |
Mostly path construction, where truncation could be bad.
ok and input from deraadt@ millert@ ray@
|
| |
|
|
|
|
| |
Fixes fd passing problems on sparc and sparc64. OK henning@
|
| |
|
|
|
|
|
|
|
| |
the parent program and the login script. This will be used by login
scripts that need to maintain state, for instance keeping a record
locked during authentication while using separate challenge and
response authentication with S/Key. OK deraadt@ marius@ henning@
|
| |
|
|
|
|
|
| |
login(1) depends on auth_clean() leaving options alone so this was
API breakage. Verified to not make ftpd leak memory by mpech@.
|
|
|
|
| |
ok millert@ espie@
|
| |
|
| |
|
|
|
|
|
| |
there is nothing to be waited for (for instance if SIGCHLD is being
ignored) we don't check WIFEXITED(garbage off the stack).
|
| |
|
|
|
|
|
|
|
| |
only arch where va_copy is currently required), current version of
va_copy uses alloca, but since the results of the va_copy are not used
here, only after return, stack trashing will occur.
This will have to be revised again for gcc 3.2 support on powerpc.
|
|
|
|
| |
and gcc3.2 requires this on powerpc.
|
|
|
|
|
| |
"if (value == as->FOO)" -- NULL needs no special handling.
Pointed out by Paul Borman.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
is the same as the private value) then just return 0 as there is
nothing to do.
This fixes a potentially nasty problem where the caller could grab
the username or style from the auth session via auth_getitem() and
then call auth_verify() with those values. auth_setitem() would
eventually get called which would make a private copy and free the
old values in the auth session. After all this, the stashed username
and/or style pointers would point to freed memory.
|
| |
|
|
|
|
|
| |
checks. The check for "as != NULL" is useless if you have already
dereferenced "as". Also fix some comment typos. From Moritz Jodeit.
|
|
|
|
| |
in case close(2) were to set errno.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
auth_clean().
Spotted via ftpd. We could use ftpd as a simple debug tool for bsdauth and
login_cap routines. :)
millert@ help&OK
|
|
|
|
|
| |
someone else could have waited for the process or zombies could be
disabled via SIG_IGN or SA_NOCLDWAIT.
|
|
|
|
|
| |
Should not really spew to stderr from libc but right now there
is no other way to get a sensible error message to the user.
|
|
|
|
| |
well (for Kerb5).
|
| |
|
| |
|
|
|
|
| |
Fixes a compile problem on alpha.
|
|
the login_* helper programs and other support will be committed in the
near future.
|