Commit graph

6785 commits

Author SHA1 Message Date
Brian Somers 5284761414 MAXPATHLEN -> PATH_MAX
Don't assume MAXHOSTNAMELEN includes the NUL
Correct a diagnostic
Use "localhost" in our prompt instead of ""
2001-03-08 23:51:50 +00:00
Jordan K. Hubbard 7e2f1eda7a Fix a paste-o which introduced a syntax error. 2001-03-08 10:41:40 +00:00
Brian Somers 2a2877b836 TUNSIFINFO now requires uid 0 to change the interface MTU.
Reviewed by:	Mark Knight <markk@knigma.org>
2001-03-08 10:33:30 +00:00
Jordan K. Hubbard 717bd36c83 Fix some of the security profile messages to be more explanatory
and also obey most of the rules of english in their construction.

Add a help screen for the security menu which gives the user a rough idea
just what the various security profiles do.
2001-03-08 10:16:56 +00:00
Jordan K. Hubbard 1f371a1617 Change check_sign to proper "pkg_sign" reference.
Noted by:	Andrew Hesford <ajh3@chmod.ath.cx>
2001-03-08 02:26:33 +00:00
Bill Fumerola 5651a03692 zeropad mac address ouput
PR:		bin/25584
Submitted by:	David Xu <davidx@viasoft.com.cn>
Reviewed by:	wollman, billf
2001-03-08 01:52:49 +00:00
Peter Wemm 1db78faf47 Properly detach at startup. We could be passing revoked fd's to
child processes or starting children with no fd 0 (stdin) at all etc.
This is currently breaking on hub.freebsd.org.
2001-03-07 10:38:46 +00:00
Duncan Barclay 28a7b66da3 replace the custom type of comments (`'\"'') with the standard one (`.\" '').
remove the duplicate $FreeBSD$ tag.

Submitted by:	ru
2001-03-07 09:17:26 +00:00
Jordan K. Hubbard e18638480d Sawfish is invoked by the gnome stuff automatically if it exists -
we don't need to start it explicitly.

Noted by:	"Jose M. Alcaide" <jose@we.lc.ehu.es>
2001-03-06 21:46:03 +00:00
Ruslan Ermilov 83a01c3a80 mdoc(7) police: misc markup fixes. 2001-03-05 14:09:45 +00:00
David Malone 0d7dabf910 Change types of "numeric" function to match that of a qsort comparison
function.
2001-03-05 12:13:12 +00:00
Doug Barton 5d7b107e1c * Add two requested features, source'ing of /etc/mergemaster.rc, and
asking the user to actually run the recommended commands related
  to installation of files such as aliases or login.conf.

* Return to using grep for CVS $Id comparison. Using ident caused too
  many problems for people with local CVS/RCS tags in their stuff.
  Attempt to make portability a little easier to maintain in spite of
  this change by defining the name of the tag to search for. This
  is a slightly different change that solves the problem in the PR.

PR:		bin/24564
Submitted by:	Tony Finch <dot@dotat.at>
2001-03-05 10:13:21 +00:00
Wes Peters 056e5d6786 Build package signing tools if OpenSSL is included in the build.
Prodded-by:	kkenn, this time.
2001-03-05 04:42:37 +00:00
Kris Kennaway 27540537e8 Switch from using rand() or random() to a stronger, more appropriate PRNG
(random() or arc4random())

Reviewed by:	bde
2001-03-05 02:15:38 +00:00
Brian Somers af5b109676 A NetBSD specific fix
Kind-of obtained from: NetBSD
2001-03-05 00:59:53 +00:00
Ollivier Robert 12fd045a2c When called with the "-n" command line argument, pkg_delete
is supposed to inform the user of all steps it would take.

The current code does not issue any messages regarding actions
that would be performed by delete_package (removing files and
executing @unexec commands), because when the Fake variable
is 1, delete_package (which itself respects Fake and prints
messages rather than taking action when it is 1) is not called
at all.

Fix this.

PR:		bin/24971
Submitted by:	Thomas Quinot <thomas@cuivre.fr.eu.org>
2001-03-04 17:38:38 +00:00
Ruslan Ermilov afcf05e46a setlocale(3) has been fixed to match POSIX standard:
LC_ALL takes precedence over other LC_* envariables.
2001-03-02 16:52:14 +00:00
Peter Wemm 8ca420e7fa Ack! I finally got annoyed enough to actually kill this. There is no
need to manually force the network_interfaces variable in /etc/rc.conf,
and it only ever gets in the way.  rc.network and rc.network6 DTRT with
the default of 'auto'.  This should have died over a year ago.
2001-03-02 08:15:41 +00:00
Ruslan Ermilov 7bf8fc01e9 Fix brokeness in rev. 1.6: this manpage appeared in NetBSD 1.4.
Obtained from:	NetBSD
2001-03-01 17:09:01 +00:00
Maxim Sobolev 1edf3f9bdb Put back several lines that I erroneously deleted in my previous commit. This
should fix recent segfault of `pkg_info -e'.

Submitted by:	Garrett Rooney <rooneg@electricjellyfish.net>, knu
2001-03-01 13:08:07 +00:00
Warner Losh 59aadf9385 h_errno is declared in netdb.h. 2001-03-01 06:41:43 +00:00
Warner Losh c5acf97d44 Include <unistd.h> for getopt's interface rather than declare things
individually here.
2001-03-01 06:22:46 +00:00
Warner Losh 6fdc941228 optarg and optind are declared in unistd.h, so don't redundantly
declare them here.
2001-03-01 06:20:51 +00:00
Gregory Neil Shapiro a38a3724b6 Move installation of sendmail helpfile into etc/sendmail/Makefile. It is
a user configurable file and it would benefit from mergemaster.
2001-03-01 03:50:28 +00:00
Ruslan Ermilov c2d03ea879 Eliminate mdocNG warnings caused by misplaced or extraneous macro calls. 2001-02-28 17:38:53 +00:00
Ruslan Ermilov 1f1dcc1d43 Prepare for mdocNG. 2001-02-28 13:18:04 +00:00
Peter Wemm 6f34947de7 newbus_ioconf() is long gone 2001-02-28 02:55:15 +00:00
Peter Wemm f9f6bfe762 Some more tidying up. we dont use config-dependent anyware. Eliminate
some duplicate code (cut/paste bug?). tidy up some other minor stuff.
2001-02-28 02:53:32 +00:00
Peter Wemm 388481c1b7 s/special/compilewith/ (so I stop confusing myself) and GC an unused
function I missed before.
2001-02-28 02:30:30 +00:00
Peter Wemm 4336b13f61 Untangle some special magic that happened for conflicting defintions for
local files.* and options.* files on the third pass.
2001-02-28 02:07:47 +00:00
Peter Wemm 5ee6dbc67e Remove some more dead code. :-/ 2001-02-28 01:38:01 +00:00
Peter Wemm 0ef4251fb9 GC some leftover stuff (device-driver suffix) 2001-02-28 01:17:04 +00:00
Maxim Sobolev 79f0014dd5 Properly detect and report malloc(3) failures. 2001-02-27 11:15:04 +00:00
Ruslan Ermilov eec827b042 Print a diagnostic message if no interface could be determined
when attempting to create a published ARP entry.  For example:

# arp -s 1.1.1.1 auto pub

PR:		bin/7753
Submitted by:	Jonathan Hanna <pangolin@home.com>
2001-02-27 09:02:10 +00:00
Maxim Sobolev 29114b9283 - Merge recently added into pkg_info(1) regex/glob matching functionality into
pkg_delete(1) as well;
- add a new `-a' option for pkg_delete(1) to delete all installed packages;
- add a new `-i' option for pkg_delete(1) to request simple rm(1)-like
  interactive confirmation before attempting to delete each package.

Silently approved by:	jkh, -ports
2001-02-27 09:00:18 +00:00
Ruslan Ermilov bcdf5ca7c6 Prepare for mdocNG. 2001-02-26 09:05:48 +00:00
Gary Jennejohn 27ba031dff Use vsnprintf in logmsg() to avoid overflowing the array on the stack.
The problem was noted with an older model 3Com 3C589 which seems
to return more than 256 bytes of data.
2001-02-25 19:52:42 +00:00
David Malone 67ba68254b Stop pac dereferencing a null pointer if accounting is not enabeled.
PR:		24798 18191
Submitted by:	Nick Hilliard <nick@netability.ie>
Reviewed by:	gad
2001-02-25 13:50:29 +00:00
Maxim Sobolev 87b0b1f0b8 Add two missed modifiers into usage message (-G' and -x'). 2001-02-24 14:10:31 +00:00
Bill Paul 15e0aafdc2 Fix typo that was causing a compiler warning.
Submitted by:	Alfred Perlstein
2001-02-23 20:04:20 +00:00
Peter Wemm ed53c6c5c0 Move the 'dont forget "make depend"' to be the last thing that people see,
after the warnings.
2001-02-23 00:22:04 +00:00
Peter Wemm a9973e4ad8 Futher cleanups. Since we have two options lists, one for proper options
and one for Makefile options, pass in the list head and use a common
newopt() routine.
Fix the 'config vmunix' support glue which was broken for a few minutes.
2001-02-22 04:00:29 +00:00
Gregory Neil Shapiro e4e1027a2e Move creation of the sendmail statistics file from the usr.sbin/sendmail
Makefile to the etc/sendmail Makefile to be consistent with all of the
other /var file creations.  In doing so, change the Makefile target from
etc-sendmail.cf to distribution as it installs more than just the sendmail.cf.
2001-02-22 03:55:08 +00:00
Peter Wemm 2db1cff10d Collect together a handful of copies of the option generator code into a
single newopt(char *name, char *value) function.  Change newdev() to
do the same thing rather than depending on the evil 'cur' device hack.
2001-02-22 03:40:50 +00:00
Jordan K. Hubbard 5127091073 Properly preserve /etc/mail during upgrades.
PR:		misc/23048
Submitted by:	jack@germanium.xtalwind.net
2001-02-21 07:47:31 +00:00
Maxim Sobolev 639a9162ad Fix a typo, that in some cases may lead to incorrect packages reordering. 2001-02-21 02:01:10 +00:00
Jordan K. Hubbard eb60c63ed2 Use the more logical author syntax from pkg_version and quote
email addresses properly.
2001-02-20 21:57:19 +00:00
Ruslan Ermilov 0ca9484af4 Install manpages into machine-specific (i386) subdir. 2001-02-19 16:01:05 +00:00
Maxim Sobolev 2a0eee8b7f Improve pkg_delete(1) behaviour when deleting several packages at once.
Instead of trying to delete packages in the same order as they were specified
in the command line, reorder deletion in such a way that if package A depends
on package B then package A will be deleted before B no matter in which order
they were specified in the command line.

Reviewed by:	jkh, will
Approved by:	jkh
2001-02-19 13:26:13 +00:00
Stephen McKay 4555c95d7d There is an arbitrary file size limit in ctm of 20MB. By my reckoning,
ports/INDEX,v is currently 19.97MB and will blow this limit on the next
update.  Let's try doubling the limit again, to give us time to get
around to removing the limit altogether.
2001-02-19 12:04:46 +00:00