Commit Graph

1035 Commits

Author SHA1 Message Date
mycroft 83f70e9b51 Just return an error if we try to look up a user name that's too long, rather
than trying to truncate.  The previous truncation code actually set key.size
too large and caused a (non-exploitable) core dump inside DB.
2002-02-12 18:58:04 +00:00
ross 930fd2d1bf fix <> string names 2002-02-10 01:21:38 +00:00
kleink d248468105 Untangle the description of {MONOTONIC_CLOCK} somewhat. 2002-02-08 12:12:55 +00:00
ross 9856438e91 generate & symbolically 2002-02-07 09:24:04 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
ross 8bd7cb6a69 Edit -mdoc usage.
* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.
2002-02-07 03:15:06 +00:00
lukem 4ddb8bc644 be consistent with internal names: s/start_gr/grstart/ ; s/matchline/gr&/ 2002-02-02 15:21:29 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
kleink 935d56d508 Add {POSIX_MONOTONIC_CLOCK} variables. 2002-01-31 00:32:47 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tv 93d5f4c5b6 Add hooks to allow compiling for non-NetBSD hosts. 2002-01-29 02:04:30 +00:00
tv 7f8540d87f Add hooks to make this compilable from src/tools/compat. 2002-01-28 23:50:09 +00:00
tv a6d1338ee0 Fix previous to actually include config.h. 2002-01-28 23:01:43 +00:00
tv 12b9020c07 Make compilable from src/tools/compat. 2002-01-28 22:39:07 +00:00
simonb adce1e7c12 Document the new kern.tkstat.* sysctls. 2002-01-28 02:07:01 +00:00
simonb ed6b438e40 Implement the hw.disknames and hw.diskstats sysctl's that have been listed
in <sys/sysctl.h> since day one but never implemented.
2002-01-27 12:41:07 +00:00
lukem 08aaa6443d reorder the weak_alias stuff into the !HAVE_CONFIG_H section 2002-01-24 06:31:38 +00:00
lukem 6542230523 support reachover compile from tools/compat 2002-01-24 04:07:13 +00:00
lukem 463cd54319 - Implement pwcache_userdb(3), which changes the routines that
user_from_uid(3) and uid_from_user(3) use to lookup user information.
- Implement pwcache_groupdb(3), which changes the routines that
  group_from_gid(3) and gid_from_group(3) use to lookup group information.
- Ensure that private functions in pwcache.c are declared static
- Use strlcpy(3) instead of strncpy(3)
2002-01-24 02:46:32 +00:00
tv c08a2cb7c2 Add hooks for reachover builds from src/tools/compat. 2002-01-21 21:33:42 +00:00
wiz 9640974a4a Whitespace nit. 2002-01-15 02:36:40 +00:00
wiz ebec85d8e2 Formatting improvements. 2002-01-15 02:35:58 +00:00
lukem 3792c58680 ansi knf 2002-01-12 23:51:30 +00:00
lukem 86301f004f ANSI KNF. remove NET2_STAT cruft 2002-01-04 14:50:29 +00:00
thorpej e23f3d9104 Fix -Wshadow warnings (gcc 3.1). 2001-12-30 19:26:28 +00:00
chs 529421342a update vm entries. 2001-12-24 01:07:06 +00:00
enami 689d72c0ba Use memcpy instead of memmove since no overlaps here (copy from somewhere
outside of the funciton to our stack).
2001-12-08 00:30:59 +00:00
christos 78cf9b7cc7 using -Wcast-qual and -Wwrite-strings reveals that we need to use const
char * when we pass "" as an argument to a function. Too bad that they
produce too many other spurious warnings too.
2001-11-28 22:31:39 +00:00
jdolecek 43d484c439 it's sufficient to say _once_ that the functions are macros; keep
the one which states sigemptyset() and sigfillset() are macros
Xref signal(7)
2001-11-23 18:30:11 +00:00
jdolecek 4a354050fc s/Sig/Specified sig/ in ERRORS 2001-11-23 18:24:30 +00:00
tron 3428499c33 Use ANSI signature for signal handler function. 2001-11-22 12:04:41 +00:00
enami bc2805c808 Cosmetic changse. 2001-11-21 00:48:28 +00:00
enami 1ffafc030e Extend an array before allocating an element. This makes cleanup code a bit
simpler since we no longer need to worry about an element not in an array yet.
2001-11-21 00:47:56 +00:00
kml 1d2a82ea66 Added descriptions of the new sysctls for controlling the disposition
of IPv4 routes added via redirects, rediraccept and redirtimeout.
2001-10-30 06:43:21 +00:00
kleink 98a839573a Partially back out previous: don't apply restrict qualifier to pointer
to function.
2001-10-28 05:12:31 +00:00
kleink e281efeeaa Sprinkle some __restrict into <glob.h>. 2001-10-27 15:35:19 +00:00
yamt 1d81d04484 avoid leaks in the case of error. 2001-10-25 02:02:02 +00:00
itojun 28ba4f6ef7 bring in new net.inet6.icmp6.nodeinfo description. 2001-10-18 09:14:29 +00:00
lukem 073a7a6ef5 don't bother checking _DIAGASSERT(fd != -1), since the underlying
ioctl(2) will check it and return EBADF, and i got sick of the warnings
from programs like sshd which occassionally call isatty() with bad fds.
2001-09-30 23:25:38 +00:00
enami 9e0ad09c03 Cosmetic changes (including ANSI'fy). 2001-09-19 01:14:51 +00:00
enami b2e798fd44 Remove unnecessary alloca, strcpy and strlen call. 2001-09-19 01:07:19 +00:00
christos eb7e2c7da8 From Brian Ginsbach: Fix overflow detection, and only abort on long paths
when GLOB_ERR is set.
2001-09-18 16:37:26 +00:00
simonb aaa0df1add Use alloca() instead of malloc() and strdup(). Proper fix for the find
problem posted to current-users@netbsd.org.  Solution suggested by a
couple of folks on that mailing list, and Art Grabowski who pointed me
at a similar change in OpenBSD.
2001-09-18 05:09:37 +00:00
wiz 09a03cd887 Standardize section headers, sort sections, sort SEE ALSO, punctuation
and misc. fixes.
2001-09-16 02:57:03 +00:00
wiz a0dbe70b74 Boring whitespace fixes. 2001-09-16 02:30:23 +00:00
simonb e8bf848218 Unwrap a line that wasn't >80 characters long before it was wrapped. 2001-09-15 15:43:40 +00:00
christos 20abba463b Selected fixes from Brian Ginsbach <ginsbach@cray.com>, modified by me.
- handle globbing of patterns that contain unmatched braces. Globbing
  a pattern "foo{" in a directory that contains "foo{" now works.
- check for MAXPATHLEN overflows during filename generation (security problem).
- Posix/XOpen fixes to always return GLOB_ABORTED when a directory open fails
  or when a file access fails.
- pathc was not initialized to 0 in one case.
Also
- rename err to error, so that it does not conflict with the libc function.
2001-09-08 22:39:21 +00:00
lukem 9839c99d92 fstabscan() fixes:
- if _fs_fstab.fs_type is NULL, the line is incorrect, so warn about it
  rather than trying to deference a NULL pointer.
  fixes [bin/13787] by Dave Burgess.
- clear _fs_fstab before each use (just to be sure)
2001-08-31 00:31:07 +00:00
groo 37ffb3b127 begin executed --> being executed 2001-08-22 20:18:08 +00:00
atatat 49d53cd636 Build a single retry into syslog() so that if someone restarted
syslogd after we called openlog(), we don't just to lose until we call
openlog() again.  Or get restarted.  This is good for long running
processes that use syslog(), like sendmail, postfix, named, etc.
2001-07-30 04:12:33 +00:00