Commit Graph

2403 Commits

Author SHA1 Message Date
mrg
18ae3abbcd fix "-s" option 1998-07-07 17:05:28 +00:00
mrg
c0aa4ce503 oops, missed this in gethostname sweep. 1998-07-07 03:36:53 +00:00
mrg
33c0bbba35 add "lp -s" switch, from darcy@druid.net in pr#5713. document "lp -s" and "lp -o" 1998-07-07 02:01:37 +00:00
mrg
80efe80bc9 - change setgid kmem programs (that lend themselves to this) so setegid(getgid())
and the top, and then set the effective gid back to kmem around the call to
  kvm_openfiles().  this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
  kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
1998-07-06 07:50:18 +00:00
mrg
32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
mrg
2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
tron
1ea9bb436f When adding a binary package from a locale file "pkg_add" fails now if
a dependence can't be resolved unless "-f" is used, fixes PR pkg/5625
by Jeremy Cooper.
1998-07-05 21:15:55 +00:00
mrg
c2b498a921 KNF. 1998-07-05 06:20:05 +00:00
mrg
5b9ccc383d use destination's size in 2 memcpy calls. 1998-07-04 21:31:59 +00:00
mrg
5a91a6622c KNF + check for fork failure. 1998-07-04 21:04:02 +00:00
mrg
26b338e7f0 ensure we do not overrun errbuf. 1998-07-04 20:47:24 +00:00
jonathan
50ca59e842 Fix braino. 1998-06-30 03:42:23 +00:00
jonathan
eaa351c789 * Check that any declared option (def{opt,param,flag}, filesystem
is declared at most once.
* Do option dependency across all def{opt,param, flag}.
* Make the default value of otherwise-unspecified defopt's be 1,
  for consistency with non-defopt'ed options.
* Wrap an abstraction layer (macros) around tests for defopt, filesystem,
  defparam, etc. to catch outdated  defopt-vs-filesystem tests.
1998-06-30 03:30:56 +00:00
nathanw
e14ca04293 Document shortcorename support and control. 1998-06-28 21:36:55 +00:00
scottr
a5427da04d Add and document the -v flag, and only print option-related warnings
if this flag is specified.
1998-06-28 04:41:36 +00:00
tv
bf6bf05ae1 Fix hannken's fix: The correct way to keep pstat.c from looking for any
"opt_*.h" files is to set a flag that tells the header files not to look for
anything in the kernel compile directory, i.e. _LKM.

Just rearranging includes doesn't work because it'll just break again,
eventually, as more stuff is defopted.
1998-06-26 19:52:29 +00:00
hannken
653c43d0f5 Make it compile again. Include <sys/socket.h> before setting _KERNEL.
Otherwise the chain pstat.c -> <sys/mount.h> -> <sys/socket.h> fails
with 'opt_compat_freebsd.h: No such file or directory' ...
1998-06-26 14:17:01 +00:00
jonathan
0925cf4fda Stronger checking of options:
* machinery for nonfatal warnings.
* new backend config-file keywords:
     defparam -- like defopt, but each defparam option is required
		 to have a value when configured via "options".
     defflag -- like defopt, but defflag options may not have a value.
		 Also, on "option FOO",  a needs-count style flag
		 (NFOO, either 0 or 1)  is emitted to the .h file.

* Warn about old-style options that aren't defined via def{opt,param,flag}
  and which are  added to IDENT. (These behave subtly differently
  to defopt options when  no explicit value is given.)
1998-06-24 11:20:54 +00:00
kleink
1f491461e0 Need <time.h> for time(). 1998-06-24 10:26:08 +00:00
tron
00d198478f Fix broken call to dbopen(), fixes PR bin/5637 by Azuma Okamoto. 1998-06-22 20:40:01 +00:00
lukem
e31c1515a6 divide (not multiply) ratio by 256 1998-06-18 08:03:08 +00:00
kleink
41dc2c91bd Fix LP64 botches introduced in last commit. 1998-06-11 14:50:46 +00:00
kleink
8bced1141c Fix an LP64 botch introduced in last commit; reported by Tim Rightnour. 1998-06-10 21:15:41 +00:00
scottr
e6eb7d0530 Implement option dependencies as part of the defopt action. We currently
restrict depended-on (or "implied") options to those that have been
previously defopt'ed, which inherently eliminates any cycles in the option
graph.
1998-06-10 04:33:31 +00:00
lukem
fc90756956 Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
lukem
d86c20ef36 remove unnecessary comment 1998-06-08 12:38:41 +00:00
lukem
fa0c2d578e everything has bugs; either document them or don't bother with a BUGS section 1998-06-08 12:36:55 +00:00
lukem
211a72a8dc convert from in-house read_line to fparseln() 1998-06-08 06:53:47 +00:00
lukem
d595bfe79d add ypinit -c (setup yp client) 1998-06-08 06:29:25 +00:00
lukem
3ed28f5cc1 disable INSECURE=yes now that libc support master.passwd YP maps 1998-06-08 03:44:34 +00:00
lukem
c5b39b1d5a treat single "+" as "+:::::::::" (pw_scan() doesnt like former). minor KNF 1998-06-08 03:23:07 +00:00
lukem
77a05c5b00 clear flags before calling pw_scan() 1998-06-07 14:40:29 +00:00
enami
fcc684632c Remove comma at the end of SEE ALSO list. 1998-06-07 08:03:50 +00:00
frueauf
dd2f801595 Add support for CONFLICTS entry, implement -C switch for pkg_create
and document that new feature.
1998-06-05 11:22:19 +00:00
msaitoh
e167016fdb The service name of the rwhod(8) is not "rwho" but "who". 1998-06-04 13:31:40 +00:00
lukem
ce2d32b0d7 don't leak unnecessary info 1998-06-03 00:13:02 +00:00
kleink
e6be56ae0b Need <stdlib.h> for mktemp() prototype. 1998-06-01 14:05:35 +00:00
kleink
cf82cd0b86 Need <stdlib.h> for setkey() prototype. 1998-06-01 14:00:11 +00:00
thorpej
c7a84c77fa If the client requests a specific boot file, echo it back, per RFC951. 1998-05-31 00:37:38 +00:00
veego
7176ddee62 Ups, again put the NetBSD rcs id into this files. 1998-05-29 21:01:45 +00:00
veego
42364dd3bb Remove 14 and the hole results directory during a make clean. 1998-05-29 20:59:43 +00:00
veego
e8450f8d3b A little better support to make it work in an NetBSD tree. 1998-05-29 20:57:10 +00:00
veego
8ed932e111 Fix a printf compiler warning. 1998-05-29 20:52:04 +00:00
veego
1e27ada63f Fix a compiler warning for the handlehup argument. 1998-05-29 20:50:55 +00:00
veego
1198b69377 Resolve conflicts from the import of IPFilter 3.2.7. 1998-05-29 20:46:45 +00:00
veego
5f1fcd9bd8 Import IP Filter 3.2.7 1998-05-29 20:14:16 +00:00
jeremy
52a7423256 Documented how the require and install scripts interact with the installation
process more clearly.
1998-05-28 02:30:39 +00:00
matt
40841db9cc NetBSD uses "normal" bit order for FDDI addresses. 1998-05-24 21:41:30 +00:00
thorpej
6ac52dea77 Display a more meaningful error message if the bpf open fails. 1998-05-24 20:30:55 +00:00
kleink
2a4b2482f5 Permit checking the availability of the POSIX File Synchronization Option
(a/k/a fsync(2)), System V style message queues, semaphores and shared memory
at runtime by adding a sysctl variable for each.
1998-05-24 19:52:01 +00:00