Commit Graph

2425 Commits

Author SHA1 Message Date
joerg 95f7f57dfb Remove physical markup. 2009-04-09 04:02:32 +00:00
joerg 3b17d40bfb Don't use .Xo/.Xc or .Oo/.Oc over .It lines to work around the macro
argument limit in ancient groff versions.
2009-04-09 02:25:45 +00:00
joerg 5b2aa3c892 Don't use .\" as callable macro. 2009-04-08 15:05:58 +00:00
joerg f4bfcdb4ae Improve markup. 2009-04-08 13:36:32 +00:00
apb 33c39aadf2 In addwhatis(), two items should not be treated as duplicates unless
both the "data" and "prefix" elements are identical.  For example, the
two lines

	amiga/boot (8) - system bootstrapping procedures
	amd64/boot (8) - system bootstrapping procedures

both appear with data = "boot (8) - system bootstrapping procedures" but
with different values for prefix, and we do not want to reject one of
them as a duplicate.
2009-04-02 21:39:33 +00:00
reinoud ce5ceeea15 Fix redirection core dump as reported in PR#41042. 2009-03-23 12:49:28 +00:00
lukem fd6e87486b Fix 'vfork clobber' warning on vax.
Problem noted by and fix confirmed by Olaf 'Rhialto' Seibert.
2009-03-18 02:27:41 +00:00
lukem b4fba76b41 Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t")
NOTE: change based on ../i386/mdreloc.c 1.27
XXX: not compile tested
2009-03-16 02:46:47 +00:00
lukem 337930db10 Fix const issues (cast const pointers to "const uint8_t *" instead of "caddr_t") 2009-03-16 02:44:47 +00:00
lukem 500db00274 Default to WARNS=4
Exceptions that need a lower level are:
	getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
	hpropd ipropd-master ipropd-slave kadmind kpasswdd
2009-03-16 02:24:55 +00:00
lukem 024b6bdcb7 fix sign-compare issue 2009-03-16 02:18:39 +00:00
lukem c12ec9011a fix shadowed variable 2009-03-16 01:56:21 +00:00
lukem 7056a59163 fix WARNS=4 issues (const & type mismatches) 2009-03-16 01:13:38 +00:00
lukem 46067dc349 ANSI KNF 2009-03-16 01:04:32 +00:00
lukem 22fa21205e fix WARNS=4 issues.
(arguably usr.bin/who/utmpentry.c::getutentries() could return size_t not int)
2009-03-16 00:56:16 +00:00
lukem eccb8fb7be WARNS=4 2009-03-16 00:43:33 +00:00
lukem bb15c5ac36 fix WARNS=3 issues;
* sprinkle const
* avoid tests < 0 on unsigned types
* test fwrite() returns nmemb not <0
2009-03-16 00:08:10 +00:00
lukem f3479fb8e4 avoid a shadowed variable 2009-03-15 23:56:24 +00:00
lukem b8276deac1 rename a variable to avoid a compiler warning 2009-03-15 23:53:03 +00:00
joerg 854ee47087 Declare all columns. 2009-03-15 08:05:22 +00:00
lukem 0053962f9d Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
2009-03-15 07:48:36 +00:00
lukem dfbb3f921a apply some __UNCONST(). 2009-03-14 13:59:28 +00:00
lukem 434441debd fix sign-compare issue 2009-03-14 11:43:24 +00:00
joerg edbcd7c8fd Fix preamble 2009-03-11 13:39:33 +00:00
mrg 932fbc87d9 use SIMPLEQ_FOREACH_SAFE(), to avoid a use-after-free.
picked up by coverity.
2009-03-11 06:53:25 +00:00
lukem a341f7315c bump version for remoteloghost & portability changes 2009-03-02 03:48:43 +00:00
lukem 6269ac3894 Use LLF (et al) instead of "%lld" (et al). 2009-03-02 03:47:44 +00:00
tls 7184d23274 More CGI handling fixes from Sergey Katsev at Coyote Point.
1) Fix an issue where because of the reordering of transform_request
   and process_cgi, the cgi-script name was being cut off
   by one character (transform_request for some reason
   cuts off the leading '/' for the file name as part of its
   processing).  As an 'easy' fix, simply re-add the '/' to the
   front of the filename, which means that we don't have to
   mess with the logic that sometimes adds +1 and sometimes doesn't.

2) Work around ridiculous bug in PHP reported by lukem in 2004,
   but stubbornly never fixed by the PHP maintainers:

   Change the SCRIPT_NAME and SCRIPT_FILENAME variables
   to contain the file name only, not the query if one exists.
   Having the query in SCRIPT_FILENAME causes php-cgi to not
   work, as per the bug information here:
   	 http://bugs.php.net/bug.php?id=28227

3) Fix a memory leak because URL wasn't being freed.
2009-02-19 22:33:39 +00:00
joerg 7925dff4ee Add If-Modified-Since support. 2009-02-09 17:06:11 +00:00
tls f0f7a44ff5 From Sergey Katsev at Coyote Point: fix bugs in request transformation and
CGI handling, including bin/40355 .  There are two main changes here:

1) call process_cgi() after transform_request(), not before.  Now it is
   possible to have a default cgi handler catch a request for a path that
   was produced by transformation, e.g. by index generation -- so now the
   index can be "generated" by a CGI if that is what the user desires.

2) More clearly distinguish "file" from "query" portions of the request
   URL, so we do not feed ?-suffixed "arguments" to plain files, fail to
   match filename extensions due to ?-suffixes, etc.

   After this change, there are only two cases which use the "query"
   portion of the request (the portion after the ?):

     a) A redirect issued by HTTPD will redirect to the new file, but
	with the same query string.

     b) process_cgi() will, of course continue to use the query string.
2009-02-04 22:55:58 +00:00
jmmv 0cdcf7cea6 Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it.  0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
2009-01-19 07:08:14 +00:00
lukem fb103c5334 fix -Wsign-compare issues 2009-01-18 00:37:53 +00:00
lukem 70d3d32311 fix -Wsign-compare issues 2009-01-18 00:36:20 +00:00
christos 313780f726 PR/40339: Ed Ravin: make ftpd log both the hostname and numeric address. 2009-01-08 18:47:49 +00:00
mrg fb3cc85fef add some (uintptr_t) to some casts, so these compile with ELFSIZE=32
*and _LP64.  necessary for 32/64 bit combo ldd support.
2009-01-06 04:01:46 +00:00
mrg 9108f12f6b move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can
grab these values via reach-over more easily.
2009-01-06 02:15:06 +00:00
christos 0d7dc435fd fix for 64 bit time_t and dev_t 2008-12-29 00:33:34 +00:00
wiz 859dc97d79 Move all subsections to main DESCRIPTION, noted by John Nemeth. 2008-12-06 14:17:43 +00:00
wiz b05af3b178 Fix some more mdoclint warnings.
Add commas in enumerations.
2008-12-06 13:30:35 +00:00
jnemeth 8c012591df add -t chrootdir to SYNOPSIS, mdoclint 2008-12-06 13:18:09 +00:00
dholland 855e61a2e0 Minor KNF and whitespace nits. No functional change. 2008-11-16 06:26:12 +00:00
dholland 9e9d6e3a61 Close possible race conditions if multiple copies of makewhatis end up
running concurrently. Other half of the fix for PR 35619.
2008-11-16 06:17:05 +00:00
mrg ac1ceac37d pull across the fix from my master bozohttpd cvs tree for PR 38466. 2008-11-06 06:38:43 +00:00
mrg 9b0170606d make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
2008-10-31 20:24:51 +00:00
lukem a69f51a660 Constify.
Rework an expression to make it easier to conditionally compile.
2008-10-28 08:05:26 +00:00
mrg 8679e33545 if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
  builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.
2008-10-26 07:11:54 +00:00
christos 3b55965a05 Never build this with PIE. 2008-10-16 14:36:20 +00:00
skrll 8c9056ada8 lib/39649: dlsym(3) does not follow dependencies
Pull across code from FreeBSD to do a search of the passed object and it's
NEEDED objects (dependencies).

Reviewed by gimpy.
2008-10-04 09:37:12 +00:00
reed f2f50da6cf Fix the Document Title of manual page so it our official name (ntalkd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only ntalkd binary is
installed. So no change.)
2008-09-27 04:41:20 +00:00
macallan 982ae38f15 avoid usind __builtin_return_address(0) on PowerPC because it fails in
Xorg's module loader.
Should fix PR37812
2008-09-27 03:52:05 +00:00