Commit Graph

2415 Commits

Author SHA1 Message Date
mrg 1cd9ed7799 minor KNF. 1998-07-12 09:13:27 +00:00
mellon e7910d8d32 Hard-code NetBSD-specific directory names 1998-07-11 00:04:23 +00:00
mellon dac2726066 Document NetBSD-specific system requirements. 1998-07-11 00:02:39 +00:00
mellon b13a0491e0 Hard-code NetBSD-specific directory names 1998-07-11 00:02:08 +00:00
mellon 53904df9e4 Document NetBSD-specific system requirements. 1998-07-10 23:58:27 +00:00
rvb a7bec6f8a2 The .o files should depend on the h file, not the .c files 1998-07-10 16:37:55 +00:00
msaitoh 4944940fcf Declare ints, too, don't default them. 1998-07-09 18:32:52 +00:00
hubertf 7a033bd0d4 Extend "pkg_info -e" to allow pkg-globbing, and allow using it. 1998-07-09 17:49:51 +00:00
hubertf ad11dcd500 Replace FreeBSD's libftpio with our calls to our great ftp client. 1998-07-09 16:47:26 +00:00
cgd da88f08f26 if you're going to length-check a field before using it, length-check
the field you're actually going to use.  (bp_sname was being checked
instead of bp_file.)
1998-07-08 22:14:10 +00:00
mrg 31283e2cd0 fix error in previous pointed out by bad. minor KNFing. 1998-07-08 15:17:57 +00:00
hubertf cab003200b Abort on "rm -rf /"... 1998-07-08 07:17:30 +00:00
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