Commit Graph

1005 Commits

Author SHA1 Message Date
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
christos 3911c122ef add fts_safe_changedir() function and use it everywhere.
Idea from Todd Miller <millert@openbsd.org>
2001-07-09 21:33:03 +00:00
simonb 1704d52d02 Don't need to include <string.h> unless REALLY_SET_PROGNAME is true. 2001-07-09 00:58:22 +00:00
simonb 9bcd87074c Don't need to include <string.h>. 2001-07-09 00:57:58 +00:00
mrg 5812b2fe67 avoid an underrun in "buf". noted by dean@huxley.org in PR#13292 2001-06-25 15:34:08 +00:00
christos e4ad645398 oops, make sure we close the file descriptor... 2001-06-06 14:10:46 +00:00
christos 4a37917f04 Fix problem reported by Kris Kennaway <kris@obsecurity.org>; In
the default case fts(3) uses chdir("..") to ascend the tree. The
sequence of chdir's can be intercepted by a malicious user who
moves a subtree that fts is currently traversing to a higher level,
thus making fts operate outside it's original starting directory.
2001-06-05 17:05:11 +00:00
wiz 8810d7f022 Whitespace fixes, punctuation fix, NetBSD -> Nx. 2001-06-05 13:25:57 +00:00
wiz e93878b173 Uppercase Dt argument, fix AUTHORS section name. 2001-06-05 12:18:10 +00:00
wiz cacd6836b5 Uppercase Dt argument, fix typos, remove an empty line. 2001-06-05 12:16:23 +00:00
kleink b93e84a4ee Fix return value interval; from Tadayuki OKADA in PR lib/12984. 2001-05-23 01:08:50 +00:00
kleink 15318b7678 Internally rename sysconf() to __sysconf() to make its latter name suitable
for use from public headers.  Also, do so on all platforms.
2001-05-07 17:25:57 +00:00
matt 78aee7b9ec Enable ELF32 support for VAX. 2001-05-03 08:23:13 +00:00
kleink 08c6392504 Need <limits.h> in _CTYPE_PRIVATE environments. 2001-04-17 20:12:31 +00:00
toshii e81e43cbf6 KERN_RTC_OFFSET sysctl has been readonly. 2001-04-12 07:20:39 +00:00
christos 4331e2615e Fix sentinel for the buffer in globtilde. It was off by x 2. Noted by Theo. 2001-04-03 14:50:37 +00:00
wiz feb5cd7b0b Remove trailing space from comment line. 2001-04-02 18:27:13 +00:00
kleink d665068674 Emit a link warning for the old timezone() interface; from Nick Hudson. 2001-03-31 19:13:00 +00:00
kleink a495a577a0 Finally deprecate the old timezone() interface in favor of an XSH5
timezone/daytime pair; as proposed by J.T. in September, 1996.
Fixes PR standards/11807 by Nick Hudson.
2001-03-31 18:29:20 +00:00
christos c5da7a4cfa try to make this compile on 1.4.x 2001-03-28 22:53:40 +00:00
christos 5bc6f3f69d deal with buffer overflows for fixed length buffers. 2001-03-28 22:13:06 +00:00
christos 6f6e7c44eb KNF. no functional differences. 2001-03-28 21:16:48 +00:00
itojun 4b72eeeee5 net.inet.ip.maxfragpackets defines the maximum size of ip reass queue
(prevents fragment flood from chewing up mbuf memory space).
derived from KAME net.inet6.ip6.maxfragpackets.
2001-03-27 02:24:38 +00:00
cgd 1da7909939 clean up a bit, xref exit(3), and suggest use of EXIT_FAILURE. 2001-03-22 01:47:17 +00:00
christos 317bb0ea2f set gl_pathv to NULL after we free it. 2001-03-18 22:40:20 +00:00
christos 93b3db97f3 limit the amount of memory used, not the number of arguments used. 2001-03-16 21:09:05 +00:00
christos f913546a2e Implement GLOB_LIMIT that limits number of matches to ARG_MAX. 2001-03-16 20:34:08 +00:00
lukem c9cccc1354 reference <stdarg.h> not <varargs.h>, and separate out the synopsis
for vsyslog(3) from the rest after <stdarg.h>, as per printf(3)/vsprintf(3)
2001-03-14 06:12:35 +00:00
simonb 61bb060b34 Include <string.h> for memcpy() prototype. 2001-03-12 03:20:10 +00:00
cgd b42009b570 actually, don't define SHQUOTE_USE_MULTIBYTE 2001-03-10 22:37:54 +00:00
christos fc701562b4 make these lint properly.
1. don't use MB_CUR_MAX, but MB_LEN_MAX because MB_CUR_MAX is a variable.
2. return a size_t type.
3. added const cond on do while macros.
4. remove unused variables and code,
2001-03-10 20:54:53 +00:00