summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
2015-12-12Introduce bozo_strdup and bozo_asprintf to add error checking and reducechristos
code duplication. Note that bozo_strdup is different that bozostrdup; the _ routines exit loging error to syslog or stderr, whereas the non _ routines send error responses to the http client.
2015-12-12- restrict the default list of ciphers to something more securechristos
- restrict ssl options From Travis Paul
2015-12-07Improve the httpd(8) printenv.lua Lua examplekamil
Stop using Lua builtin print function and replace them with http.* ones. httpd.print and http.write wraps SSL support when needed. Print http headers, without them browser may interpret page as raw text. No need to hardcode prefix path in the form. Add comments for a user with tips how to use this script. Patch by Travis Paul Closes PR misc/50502
2015-11-29Bump date for previouskamil
2015-11-29Synchronize SYNOPSIS with realitykamil
2015-11-29Remove nonexistent option z: in the getopt(3) callkamil
2015-10-31handle asprintf errors consistently.christos
2015-10-30fix wrong variablechristos
2015-10-30simplifychristos
2015-10-30- don't use alloca and then check if alloca returns null and then try tochristos
free it. Allocating from the stack does not return null, and freeing it will have unpredictable results. use malloc instead. - now we are using malloc remove -Wno-stack-protector kludge
2015-10-30Fix build with "USE_SSP" set to "yes".tron
2015-10-28* add CGI support for ~user translation (-E switch)shm
* add redirects to ~user translation * fix bugs around ~user translation * add schema detection for absolute redirects * fixed few memory leaks * bunch of minor tweaks * removed -r support * smarter redirects OK mrg@
2015-10-25s/USE_NBUTIL/HAVE_NBUTIL_H/, to match the Makefile.mrg
fixes a merge problem in introduced when merging the QNX patches. from Jan Danielsson.
2015-10-15Enable lfs64 in the cleaner.dholland
2015-10-14this is syslog-likechristos
2015-10-10Use llabs(), not abs(), on the difference of daddr_t's.dholland
Caught by clang, reported by joerg. Turn off the clang-specific compiler flags that were making the report nonfatal.
2015-10-03Use IINFO in the cleaner.dholland
2015-09-03Remove dead assignment; from Henning Petersen in PR 50196.dholland
2015-09-01Add new accessors for the d_type and d_namlen fields of struct lfs_direct.dholland
Napalm the old byteswap access logic for these.
2015-09-01The ifile's inode number is constant. (it is always 1)dholland
Therefore, storing the value in the superblock and reading it out again is silly and offers the opportunity for it to become corrupted. So, don't do that (most of the code already didn't) and use the existing constant instead. Initialize new 32-bit superblocks with the value for the sake of old userland programs, but don't keep the value in the 64-bit superblock at all. (approved by Margo Seltzer)
2015-09-01Add byteswapping to the dinode accessors.dholland
This prevents regressions in the ulfs code when switching to the new accessors. Note that while adding byteswapping to the other accessors is straightforward, I haven't done it yet; and that also is not enough to make LFS_EI work, because there are places lying around that bypass the accessors for one reason and another and all of them need to be updated. That is going to have to wait for a later day as LFS_EI is not on the critical path right now.
2015-08-27s/dirname/dirpath/ to avoid potentially shadowing dirname(3).mrg
2015-08-13Remove trailing space in boast.wiz
2015-08-13Extend AUTHORS section. Nobody likes a braggart.shm
OK mrg@
2015-08-12Hack up dinode usage to be 64 vs. 32 as needed. Part 1.dholland
(This part changes the native lfs code; the ufs-derived code already has 64 vs. 32 logic, but as aspects of it are unsafe, and don't entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be rehashing that.)
2015-08-12Provide 32-bit and 64-bit versions of FINFO.dholland
This also entailed sorting out part of struct segment, as that contains a pointer into the current FINFO data.
2015-08-12Make 32-bit and 64-bit versions of SEGSUM.dholland
Also fix some of the FINFO handling as it's closely entangled.
2015-08-12Add IFILE32 and IFILE64 structures for the on-disk ifile entries.dholland
Add and use accessors. There are also a bunch of places that cast and I hope I've found them all...
2015-08-12Make 32-bit and 64-bit versions of CLEANERINFO.dholland
XXX: while this is written to disk, it seems like much of it would XXX: be better set up as a commpage shared with the cleaner.
2015-08-12Fix assorted 64->32 truncations related to BLOCK_INFO.dholland
Also make note of a cleaner limitation: it seems that when it goes to coalesce discontiguous files, it mallocs an array with one BLOCK_INFO for every block in the file. Therefore, with 64-bit LFS, on a 32-bit platform it will be possible to have files large enough to overflow the cleaner's address space. Currently these will be skipped and cause warnings via syslog. At some point someone should rewrite the logic to coalesce files to use chunks of some reasonable size, as discontinuity between such chunks is immaterial and mallocing this much space is silly and fragile. Also, the kernel only accepts up to 65536 blocks at a time for bmapv and markv, so processing more than this at once probably isn't useful and may not even work currently. I don't want to change this around just now as it's not entirely trivial.
2015-08-10Use explicit_memset(3) instead of memset(3) to clear passwordshm
2015-08-10Fix directory stream leaksshm
2015-08-09Removed unnecessary memset(3) callshm
2015-08-09Clear utmpx struct before writing it to wtmpx filesshm
2015-08-05on QNX, use nbutil.h.mrg
2015-08-02Add a (draft) 64-bit superblock. Make things build again.dholland
Add pieces of support for using both superblock types where convenient, and specifically to the superblock accessors, but don't actually enable it anywhere. First substantive step on PR 50000.
2015-08-02Use accessor functions for the version field of the lfs superblock.dholland
I thought at first maybe the cases that test the version should be rolled into the accessors, but on the whole I think the conclusion on that is no.
2015-08-02Second batch of 64 -> 32 truncations in lfs, along with more minordholland
tidyups and corrections in passing.
2015-07-28Use lfs_accessors.h in conjunction with the cleaner's struct clfs.dholland
Remove previous hacks.
2015-07-28Add a new lfs header file: lfs_accessors.h.dholland
This contains all the accessor functions and macros out of lfs.h. Add an include of lfs_accessors.h after all uses of lfs.h... except for code that wants to define its own struct lfs-alike that the accessors are supposed to play along with. For these, set STRUCT_LFS and include lfs_accessors.h after the necessary structure has been defined, so that lfs_accessors.h can emit functions in terms of it.
2015-07-24More lfs superblock accessors.dholland
(This changes the rest of the code over; all the accessors were already added.) The difference between this commit and the previous one is arbitrary, but the previous one passed the regression tests on its own so I'm keeping it separate to help with any bisections that might be needed in the future.
2015-07-24Switch to accessor functions for elements of the LFS on-diskdholland
superblock. This will allow switching between 32/64 bit forms on the fly; it will also allow handling LFS_EI reasonably tidily. (That currently doesn't work on the superblock.) It also gets rid of cpp abuse in the form of fake structure member macros. Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg inside the on-disk superblock, add extra elements to the in-memory struct lfs for this. (XXX: these should be changed to condvars, but not right now) XXX: this migrates a structure needed by the lfs code in libsa (struct salfs) into lfs.h, where it doesn't belong, but for the time being this is necessary in order to allow the accessors (and the various lfs macros and other goop that relies on them) to compile.
2015-07-16Fix handling path with multiple slashes at the beginningshm
Fix redirections escaping for user support OK mrg@
2015-07-09Remove d_namelen as it's an BSD extension. Fix building bozohttpd on SunOS.shm
OK mrg@
2015-07-04fix memory leaks on error; found by brainy.christos
2015-07-03Add an explicit note about the search path used by dlopen(3).joerg
2015-05-05Bump date for previous.wiz
2015-05-05Add a -b flag so that clients that return their acknowledgements to thebuhrow
broadcast address can inter-operate with the tftpd server. Discussed in bin/49868
2015-05-02fix content type handling to not hard code (wrong) values for length,mrg
but just call strlen() as needed. call this 20150501. reported by Jan Danielsson for ".svg".
2015-04-26Use verrx with a va_list.mlelstv