summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
2017-05-08Always use the same callback to unlock as was used to lock. PermitsPhilip Guenther
libpthread initialization from a shared object's init (or fini, I suppose) routines. ok kurt@ kettenis@ espie@
2017-04-27Change len arg of getidle() from size_t to int since it is used asTodd C. Miller
a length parameter to a "%.*s" printf format. Quiets a compiler warning (both gcc and clang).
2017-04-27challenge is an array, not a pointer, therefore cannot be NULL.Todd C. Miller
Quiets a clang warning.
2017-04-27Don't send multiple error messages in response to a single commandMike Belopuhov
While a few commands (such as HELP and NOOP) are allowed in between USER and PASS, most of the others are not. However if such command is issued, ftpd should abort the command evaluation early and reply with "530 Please login with USER and PASS." From form@, with input from deraadt@ and OK millert@
2017-04-17memset() of password field should be explicit_bzero().Theo de Raadt
[Not using freezero() in yacc files yet]
2017-04-17freezero() can be used hereTheo de Raadt
2017-04-06fix missing \ on \n, spotted by Edgar PettijohnBob Beck
2017-04-03check return from pread, don't divide -1 for countTed Unangst
2017-04-03use recallocarray() because the array contains data that can be observedTheo de Raadt
2017-04-02note that some hosts never generate tuples and are ignored;Jason McIntyre
ok beck
2017-04-02Prefer pread() over lseek()+read()Philip Guenther
open() only needs the mode argument if O_CREAT is present ok beck@ deraadt@
2017-03-16define the role of spamd-setup a little better;Jason McIntyre
2017-03-16use one way to show filter rules, not two. the bits and pieces of theJason McIntyre
spamd setup are complex enough without freestyling the pf rules; while here, Bk/Ek no longer required
2017-02-18Add NULL tests to wrterror() to avoid a NULL deref when called fromPhilip Guenther
malloc initialization or a free() error path. Prompted by libc's malloc.c rev 1.214; with correction from jsg@ and otto@ ok jsg@ krw@
2017-02-16correct format strings, ok guentherTheo de Raadt
2017-02-16Match the recent change in the kernel and ask for a generic armv8-aJonathan Gray
encoding rather than one based on and tuned for cortex-a57 when using +nofp+nosimd.
2017-02-15Make this build (and run) with gcc 4.Miod Vallat
2017-02-08Provide size-generic ELF_NO_ADDR in <sys/exec_elf.h> and use that insteadPhilip Guenther
of ELFDEFNNAME(NO_ADDR) ok jca@
2017-01-30Fix ELF64_R_TYPE(reloc->r_info) to have the same type on mips64lePhilip Guenther
as on other LP64 archs, __uint64_t, so that printf-like functions don't require extra casting...then eliminate the extra cast in ld.so/mips64/rtld_machine.c discussed with miod ok visa@
2017-01-29Previous commit broke build on loongson. Refix by addingVisa Hankala
an explicit type cast. Reported and tested by matthieu@
2017-01-25Fix build on mips64.Visa Hankala
2017-01-24make ldso[] const; OK guenther@Todd C. Miller
2017-01-24For consistentcy, use 'void *' with %p instead of 'char *'Philip Guenther
2017-01-24To format r_addr, use %p and cast to 'void *'. From comparison withPhilip Guenther
other archs
2017-01-24On fatal errors, kill ourselves with thrkill(0,9,NULL) instead ofPhilip Guenther
simply exiting, via helper functions _dl_die(), _dl_diedie(), and _dl_oom(). prompted by a complaint from jsing@ ok jsing@ deraadt@
2017-01-24Unbreak $ORIGIN support when only one of DT_RUNPATH and DT_RPATH is usedPhilip Guenther
2017-01-23remove line that slipped in with rev 1.77 but doesn't belong there; ok sthen@Christian Weisgerber
2017-01-23Whoops, lost the adjustment of DT_RUNPATH value as a DT_STRTAB value.Philip Guenther
problem reported by semarie@
2017-01-23Mark a bunch of stuff staticPhilip Guenther
ok kettenis@
2017-01-23The functionality of _dl_allocate_tib() is used internally, so renamePhilip Guenther
it to allocate_tib(), mark that hidden, then make the exported function an alias of that. ok kettenis@
2017-01-23Wrap function declarations with __{BEGIN,END}_HIDDEN_DECLS to reducePhilip Guenther
relocations inside ld.so that it has to bootstrap ok kettenis@
2017-01-23Fix format string mismatchesPhilip Guenther
2017-01-23Fix format string mismatchesPhilip Guenther
testing assistance patrick@
2017-01-23check EAGAIN in the correct place,Bob Beck
noticed and ok phessler@
2017-01-23Switch spamd to nonblocking descriptors so we can count on getting aBob Beck
short write when the socket buffers are full, instead of blocking. ok benno@ claudio@
2017-01-23pledge a tiny bit later. This results in the specified tty beingTheo de Raadt
opened before the first pledge call. testing by tb and benno and others
2017-01-22Add support for DT_RUNPATH and DT_FLAGSPhilip Guenther
ok kettenis@
2017-01-21_dl_exit() is __dead, so it should return void.Philip Guenther
Move _dl_mmap() and _dl_mquery() inlines from archdep.h to syscall.h and remove pointless casts and unnecessary parens. ok kettenis@
2017-01-20Delete ancient macros and unnecessary #includesPhilip Guenther
ok deraadt@
2017-01-17- spamd(8)'s -l accepts an IP address as argument to bind(2) and it callsRicardo Mestre
inet_pton(3) to check if it's valid and since that function doesn't provide a proper errno (POSIX doesn't mandate to do so) then if a string is given we may get this message: spamd: inet_pton: Undefined error: 0 - Instead replace that code to use getaddrinfo(3) from which is possible to get a proper error message, and at the same time being able to parse IPs and hostnames (if either the IP or host is not local then the next bind(2) will fail) - By default without arguments, spamd(8) will still bind(2) to 127.0.0.1 as it did before With feedback from deraadt@ and OK beck@
2017-01-11Add support for AArch64.Patrick Wildt
2017-01-09Remove dependency on __got_{start,end} symbols and look at PT_GNU_RELROMark Kettenis
instead. Result in a few more pages that aren't writable on some platforms (such as hppa). Based on an initial diff from guenther@. Thanks to deraadt@ for testing. ok guenther@
2017-01-05Build with -fno-builtin to keep clang from optimizing the _dl_memset()Christian Weisgerber
and _dl_bcopy() functions into calls to memset() and memcpy(). ok kettenis@
2016-12-28fix the remaining cases of .Xr with only one argumentIngo Schwarze
2016-12-27Remove user uucp and group news from base.Jeremie Courreges-Anglas
2016-11-30Check return value of tls_config_set_protocols(3) and bail out in case ofRicardo Mestre
failure Feedback and OK jsing@
2016-11-08Remove redundant & when clearing hostname variable, as per otto@'s requestRicardo Mestre
2016-11-07Replace bzero(3) with memset(3)Ricardo Mestre
OK deraadt@
2016-11-03small tweak to also check canaries if F is in effectOtto Moerbeek
2016-10-31sync to libc: malloc_move is not an option anymoreOtto Moerbeek