summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2019-10-04use __func__ (c99, c++11) instead of __FUNCTION__christos
2019-10-03improve error messagetnn
2019-09-15Return the ELF loader dl_phdr_info information for dl_iterate_phdr(3)kamil
Sync the behavior of dl_iterate_phdr(3) with Linux/FreeBSD/OpenBSD.
2019-08-31New sentence, new line. Punctuation improvements.wiz
2019-08-30Add support for passing the raw device name separate from thebrad
filesystem. This is useful in the case where the cleaner is compiled into code, such as rump_lfs and the ATF tests. This helps to fix bin/54488
2019-08-24libnpf fix: link the library itself to libnv; libnpf users should not bermind
expected to assume this dependency.
2019-08-22Use getdiskrawname to find the device namebrad
Reviewed by Christos
2019-08-15telnetd: Stop defining the same variables concurrently in bss and datakamil
auth_level and require_secure_login were defined in two places: - global.c that picked it from headers and removed 'extern' - telnetd.c that initialized it to 0 line was defined twice: in global.c and sys_term.c with a non-zero value. Remove the definition and initialization from sys_term.c and initialize the variable early in main(). Detected during the build of telned with Address Sanitizer (MKSANITIZER). Reviewed by <mrg>
2019-07-15Tweak markup some more.uwe
2019-07-12Improve (hopefully) mark up of the capabilities tables.uwe
2019-07-12Use proper markup instead of .Em to refer to capabilities, structureuwe
memebers, etc in the text (but not in the tables yet, as those require more rework).
2019-07-11Merge lines. Fixes display problem noted in PR 54361 by he@wiz
2019-04-15r_symndx is no longer declared, use symnum and initialize it before use.maya
Completes the changes in the commit: "Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects." http://mail-index.netbsd.org/source-changes/2017/06/19/msg085496.html
2019-04-15$ORIGIN support is now enabled.maya
Thanks martin for the heads up.
2019-04-15Typo: s/a indirection/an indirection/abhinav
2019-04-14Use more Dv.wiz
2019-04-14Note that we now search DT_RUNPATH paths as well.maya
2019-04-14undo previous unlock/relock; it is not needed now that we added the tls modelchristos
declaration to all externs in jemalloc (suggested by joerg@)
2019-04-13Fix c++ exceptions on arm; jemalloc calls _rtld_tls_get_addr from insidechristos
dl_iterate_phdr, so we need to unlock and relock.
2019-04-13Do not compile __tls_get_addr() into ldd(1), which fixes ldd(1) crashingrin
on arm after switching to new jemalloc. jemalloc invokes __tls_get_addr() under some condition. If anything other than ld.elf_so nor libc exports it, inconsistency arises as a result.
2019-04-03Disable optimization for rtld.c on the vax with gcc-7.christos
2019-03-29Account for cgihandler being set when counting the number of CGI environmentmartin
headers we are about to set. Avoids an assertion failure (and overruninng the array) later.
2019-03-27add $NetBSD$mrg
2019-03-08on m68010 set BOZO_WRSZ to 16k and BOZO_WRSZ to 64k.mrg
2019-02-28call this bozohttpd 20190228, and merge the CHANGES entries from themrg
previous release.
2019-02-28add ssl specific timeout value (30s). if SSL_accept() doesn'tmrg
work with in this timeout value, ssl setup now fails. mostly different from, but inspired from the patch in PR 50655
2019-02-04- bump buffer sizes to avoid potential truncation issuesmrg
2019-02-03- add or adjust /* FALLTHROUGH */ where appropriatemrg
- add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
2019-01-29clarify the fd used for blacklisting.lukem
Use STDIN_FILENO instead of 0 as the fd to blacklist_r(), since we use the former in ftpd.c
2019-01-29NetBSD-ftpd 20180428lukem
Update version to "NetBSD-ftpd 20180428" for changes: - Fix violations of the sequence point rule. - Check that stat and fstat succeed. - Support blacklistd(8) hooks. - Clear utmpx struct before writing it to wtmpx files. - Fix directory stream leaks. - Use explicit_memset(3) instead of memset(3) to clear password. - Fix scope of variable. PR misc/50665. - Ensure that closing socket exists. CID 603440. - Add -f option to ftpd to stay in foreground with -D. PR bin/53221.
2019-01-27fix duplicated chunk from mergedholland
2019-01-27Merge the [pgoyette-compat] branchpgoyette
2019-01-22o don't display special files in the directory index. they aren'tmrg
served, but links to them are generated.
2019-01-18Adapt https://svnweb.freebsd.org/base?view=revision&revision=342113 toskrll
NetBSD. This brings us resolving for dynamically loaded libraries and makes tests/libexec/ld.elf_so/t_thread_local_dtor pass. With suggestions from joerg@
2019-01-18rework size_arrays():mrg
- avoid calloc, use bozomalloc - minor CSE - fix bozoprefs->size setting when increasing the size (new total was being added to the prior total.) found by clang static analyzer from rajeev_v_pillai. pass httpd to size_arrays() now. free(NULL) is legal.
2019-01-18fix a few problems pointed out by clang static analyzer, from rajeev_v_pillai:mrg
- bozostrnsep() may return with "in = NULL", so check for it. - nul terminating in bozo_escape_rfc3986() can be simpler - don't use uniinit variables in check_remap() - don't use re-used freed data in check_virtual(). this one is tricky as the original code was: free(request->hr_file); request->hr_file = bozostrdup(httpd, request, s ? s : "/"); however, bozostrdup() may reference request->hr_file.
2019-01-17- call this 20190116mrg
- adjust the directory indexing again: - don't include "index.html" in html headers - additional escaping of names - re-add top/bottom borders - adds an aquamarine table header - Zebra-stripes table rows using CSS instead of code all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
2019-01-17add 'check' target to toplevel makefile.mrg
fix the t11.out output now that CGI parsing works better.
2019-01-17- fix CGI '+' param and error handling.mrg
- remove unused parameter to daemon_poll_err(). both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
2019-01-12print the program name when we don't find a library.christos
XXX: really most _rtld_error() should do that, and most do.
2019-01-09Spell "occurrence" correctly.uwe
2019-01-08remove reference to deleted -r option. fixes PR#53840 from J. Lewis Muir.mrg
2019-01-06When loading a non-PIE main binary, the virtual address must match.joerg
Use MAP_TRYFIXED and verify that the result matches the expectation.
2019-01-04MAP_ALIGNED has existed for years, just assume it exists.joerg
2018-12-30Add support for DT_RUNPATH - it is just the same as we always have treatedmartin
DT_RPATH. Approved by core.
2018-12-30- fix wrong reloc name in assertchristos
- fix uninitialized
2018-12-30binutils 2.31.1 can put copy relocations in the relro segment. Delaychristos
protecting the relro segment for the main object until copy relocations are done.
2018-12-27initfini array support for everyone.christos
2018-12-27explain why we skip objmain.christos