Commit Graph

6323 Commits

Author SHA1 Message Date
Mark Murray
acce0bcdb3 Test correct macro for "without crypto" option(s). 2003-07-20 23:29:46 +00:00
Simon L. B. Nielsen
d5c96e1341 Add my birthday to the calendar.
Approved by:	ceri (mentor)
2003-07-20 20:31:18 +00:00
John-Mark Gurney
b4eb37c63d make sockstat not print wierd addresses on not connected unix domain sockets
Pointed out by:	rwatson
Reviewed by:	peter
2003-07-19 06:23:56 +00:00
Julian Elischer
e27d79bb28 Changes to allow top to decide whether or not to show multiple threads per
process. Option -H enables it and it is toggled at the interactive
screen by 'H'.

Submitted by:	Jung-uk Kim <jkim@niksun.com>
2003-07-17 23:56:40 +00:00
Mark Murray
4afa371832 Very big makeover in the way telnet, telnetd and libtelnet are built.
Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".

As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).

Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.
2003-07-16 20:59:15 +00:00
Poul-Henning Kamp
b83573ce9e Since (x)install is pretty unhelpfull and just spits out a Usage
for a lot of unrelated error conditions, at least report the line
number where it bailed.

Don't use multiline string literals for Usage, gcc 3.3 doesn't like them.
2003-07-11 20:51:16 +00:00
Alexander Kabaev
8a50130bbb Do not compare unsigned int values with ULONG_MAX. The comparison is
always false on 64bit platforms and GCC 3.3.1 issues warning there.
2003-07-11 05:47:05 +00:00
Alexander Kabaev
e9f8ce2eea Point to the new C++ include files location. 2003-07-11 05:30:58 +00:00
Marc Fonvieille
486d26019c Add my birthday to the calendar. 2003-07-08 18:31:49 +00:00
Daniel Harris
d47b06fccf Remove utmp references, no longer done by login(1) in 5.x.
PR:		54201
Submitted by:	mdg <mdg@secureworks.net>
2003-07-08 13:01:28 +00:00
Gregory Neil Shapiro
dce6e6518b Remove MAINTAINER= lines from individual Makefiles in favor of the
MAINTAINER file (which already had entries for sendmail).
2003-07-07 03:54:04 +00:00
Luigi Rizzo
2233a14e50 remove whitespace at end of line 2003-07-04 20:44:25 +00:00
Ruslan Ermilov
c94d70434f Fixed broken arithmetic expression parser.
Reminded by:	bde
In memory of:	alane
2003-07-04 13:33:48 +00:00
Juli Mallett
e7b883c427 Make the sysctlbyname stuff look like the 2-level MIB stuff. This
means actually setting 'len', for example.  Which will make uname -i
work on some systems where it did not.  Anywhere where it did work,
it was a matter of coincidence.

Submitted by:	redpixel on EFnet.
2003-07-01 20:15:28 +00:00
Tony Finch
2fd339446d Improve expression evaluation debugging output, tidy up the handling of
EOF, and improve the commentary about backslash-newline handling.
2003-07-01 15:30:43 +00:00
Tom Hukins
8b582d6ee0 Add the British hundredweight (brhundredweight). For discussion, see:
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20030630/019926.html
For a definition, see:
http://www.bartleby.com/61/55/H0325500.html

Also add some more computing terms described at:
http://www.wikipedia.org/wiki/Integral_data_type

Reviewed by:	dwmalone
MFC after:	2 weeks
2003-07-01 10:33:27 +00:00
Tony Finch
eb801906b8 Various fixes from upstream, including a bug...
Fix the usage synopsis.

Amend the copyright notice to reflect the fact that there's no Berkeley
code left.

Fix a typo in a comment, improve the descriptions of the way we use
some global variables (relevant to the bug below), and note that
division-by-zero has side effects so the current expression evaluator
can't be trivially extended to arithmetic in its current design.

Avoid hitting an abort(); /* bug */ when in "text mode" (i.e.
ignoring comment state) by updating the line parser state properly.

PR:	53907
2003-06-30 14:46:25 +00:00
Maxim Konovalov
fe9f481f9d o Fix identation. 2003-06-30 11:51:21 +00:00
Maxim Konovalov
ed10a496b1 o Support for '--' to cancel options list processing.
PR:		bin/32433
Prodded by:	Zak Johnson <zakj-freebsd-hackers@nox.cx>
Obtained from:	easyedit-1.4.6
MFC after:	2 weeks
2003-06-30 11:49:00 +00:00
Andrey A. Chernov
e5637075a3 Back out .SU workaround - people at whois-servers.net set up
su.whois-servers.net
2003-06-29 23:56:31 +00:00
Juli Mallett
ad46866975 Add code to keep going if you're really intent on fingering someone, but
can't use utmp(5).
2003-06-28 23:11:41 +00:00
Ruslan Ermilov
73e57b801f Synchronize usage() and SYNOPSIS, and fix them (flags are not
optional here).  Sort options.  Print the file name on error.
2003-06-28 22:30:46 +00:00
Peter Wemm
c76b41b7b5 utmp.ut_time is not a time_t, do not pass a pointer to it to pr_attime(). 2003-06-28 19:11:42 +00:00
David E. O'Brien
f6d8a17fe8 Finish the deorbital burn of the i386-only a.out toolchain. 2003-06-27 03:59:46 +00:00
Alexey Zelkin
2a805f6300 Move scmp() to more appropriate location 2003-06-26 11:05:56 +00:00
Alexey Zelkin
980548ef84 Add support of '-m' option to show charmaps (or correctly to say list of
available codesets)

Modify manpages appropriatelly
2003-06-26 11:01:03 +00:00
Alexey Zelkin
b1d6647755 implement LC_MONETARY's int_* keywords 2003-06-26 09:07:53 +00:00
Alexey Zelkin
48f12e5860 locale.c:
Use newly added __detect_path_locale() helper to lookup _PathLocale value.
It adds boundary checking for PATH_LOCALE environment variable value and
check for super-user fallback.

Makefile:

Add lib/libc/locale to compiler's include path (for setlocale.h)
2003-06-25 23:05:11 +00:00
Alexey Zelkin
d8d4841398 Catch up with _PATH_LOCALE move from rune.h to paths.h 2003-06-25 22:31:42 +00:00
Mike Heffner
fd693f6790 Restore INET6 option from config.h.
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
2003-06-25 15:53:25 +00:00
Sean Kelly
2927f5f648 Add my birthday to the calendar.
Approved by: jeff (mentor)
2003-06-25 05:42:32 +00:00
Julian Elischer
14823ba8d6 Temporarily re-remove the bluetooth tools..
there are problems with their Makefiles I wasn't aware of..

Pointed out by: ru@
2003-06-24 19:11:14 +00:00
Andrey A. Chernov
1d07f642df While there is no su.whois-servers.net, use fallback to
ru.whois-servers.net for su domain or country
2003-06-24 15:08:24 +00:00
Julian Elischer
8590c01663 Connect bluetooth tools for i386 only.
These are probably machine independent, but
there is no way for the developers to test them other than on x86.

They will become MD as testing becomes possible.
2003-06-24 13:25:24 +00:00
John-Mark Gurney
ab1897e943 fix this code properly. msdosfs can't have device nodes on them.
comment how to read device nodes from ufs (if an adventurous soul wants
to fix it!).

Reviewed by:	bde
2003-06-24 08:18:18 +00:00
Diomidis Spinellis
40cfd67361 New committer Diomidis D. Spinellis - dds@FreeBSD.org
Approved by: schweikh (mentor)
2003-06-23 20:54:33 +00:00
Andrey A. Chernov
3232f62c25 FIx catalog name I overlook in prev. obsolete locales removing
Submitted by:   ru
2003-06-23 13:08:22 +00:00
Ruslan Ermilov
6713c83ccc We use modernized version of soelim(1) shipped with Groff. 2003-06-23 12:03:22 +00:00
Maxim Konovalov
c30afbc578 o Fix rev. 1.41, print a header. -STABLE is OK.
PR:		bin/53585
Submitted by:	Alexey Dokuchaev <danfe@regency.nsu.ru>
2003-06-23 08:43:19 +00:00
Greg Lehey
156bc71b92 Add the date of Turing's death.
Change the entry for Turing's birthday to be the same as in
calendar.birthday.  This enables cron jobs to uniq(1) the entry.
2003-06-23 00:16:00 +00:00
Alexey Zelkin
93cdc37dbf Hook locale(1) to build 2003-06-22 08:41:03 +00:00
Alexey Zelkin
64825d2991 document 'list' keyword & fix few typos 2003-06-22 08:39:29 +00:00
Alexey Zelkin
3f101ba0a5 Add FreeBSD specific keyword 'list' implementation. 'locale -k list' can
be used to retrieve list of all available keywords now.
2003-06-22 08:34:27 +00:00
Alexey Zelkin
d8dca302fb Add WARNS 2003-06-22 08:24:53 +00:00
Alexey Zelkin
3c6001ec5d Fix few typos and remove two unneeded checks
Noticed by:	ache
2003-06-20 13:29:43 +00:00
Alexey Zelkin
c166f16908 We have manpage now, so remove NOMAN 2003-06-20 13:24:46 +00:00
Alexey Zelkin
b67daebabc Fix most warnings, sort prototypes, kill spaces at EOLs 2003-06-20 13:23:51 +00:00
Alexey Zelkin
10efe9a914 Add minimalistic manual page for locale(1) 2003-06-20 11:52:05 +00:00
Alexey Zelkin
b296024678 Complete rewrite of locale(1) in order to become POSIX complaint utilitty.
It's possibly not completely complaint with POSIX requirements, but
very close to it now.
2003-06-20 11:45:43 +00:00
Martin Blapp
c5455e6d6a Fix broken -a functionality.
Reviewed by:	phk
Submitted by:	Martin Kammerhofer <mkamm@gmx.net>
PR:		53451

MFC:		1 week
2003-06-19 09:19:51 +00:00
Murray Stokely
1b8d837cd0 phk added the -x option in May 2000, but only for regular files; for
special files it was treated like -l.  This commit adds the -x option
in for special files as well.

PR:		bin/46249
Submitted by:	Colin Percival <cperciva@sfu.ca>
2003-06-19 07:24:26 +00:00
John-Mark Gurney
cf56713abf correct spelling of struct cdev * from dev_t which is a 32bit type and
isn't very useful for passing pointers on LP64 systems.

device names on sparc64 and alpha should now work.
2003-06-19 02:09:22 +00:00
Philippe Charnier
d4d2557dc5 Bump WARNS to 6. Add usage(). Use provided xmalloc() instead of malloc().
Use err().
2003-06-17 19:58:33 +00:00
Mike Heffner
f5520c4045 Update for latest lukemftp import. 2003-06-16 02:37:42 +00:00
Mark Murray
1dd991a05b If lint(1) is not "lint", don't try to lint the xlint compat-libs. A
third-party lint is probably being used.
2003-06-15 13:03:37 +00:00
Philippe Charnier
d005495293 err() on allocation failure. WARNS=9 compliant
use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering
when a message is provided, use errx() instead of err().
2003-06-15 09:28:17 +00:00
Robert Watson
aee1b42ab6 Now that the kernel access control for quotactl(2) appears to work
properly, clean up quota(1).  quota(1) has the ability to query
quotas either directly from the kernel, or if that fails, by reading
the quota.user or quota.group files specified for the file system
in /etc/fstab.  The setuid bit existed solely (apparently) to let
non-operator users query their quotas and consumption when quotas
weren't enabled for the file system.

o Remove the setuid bit from quota(1).

o Remove the logic used by quota(1) when running setuid to prevent
  users from querying the quotas of other users or groups.  Note
  that this papered over previously broken kernel access control;
  if you queried directly using the system call, you could access
  some of the data "restricted" by quota(1).

In the new world order, the ability to inspect the (live) quotas of
other uids and gids via the kernel is controlled by the privilege
requirement sysctl.  The ability to query via the file is controlled
by the file permissions on the quota database backing files
(root:operator, group readable by default).
2003-06-15 06:54:36 +00:00
Robert Watson
41b0d1a064 Now that the kernel access control for quotactl(2) appears to work
properly, clean up quota(1).  quota(1) has the ability to query
quotas either directly from the kernel, or if that fails, by reading
the quota.user or quota.group files specified for the file system
in /etc/fstab.  The setuid bit existed solely (apparently) to let
non-operator users query their quotas and consumption when quotas
weren't enabled for the file system.

o Remove the setuid bit from quota(1).

o Remove the logic used by quota(1) when running setuid to prevent
  users from querying the quotas of other users or groups.  Note
  that this papered over previously broken kernel access control.
2003-06-15 06:46:24 +00:00
David E. O'Brien
457946d9bd Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
Tom Rhodes
33ffdd8115 Don't truncate the output file before making sure that we can
read at least 1 byte from the input file without problems.  This
fixes a bug in uncompress(1) that causes the accidental removal
of files that happen to have the same name as the output file,
even when the uncompression fails and is aborted, i.e.:

$ echo hello world > hello
$ touch hello.Z
$ ls -l hello*
-rw-rw-r--  1 giorgos  giorgos  12 Jun 14 13:33 hello
-rw-rw-r--  1 giorgos  giorgos   0 Jun 14 13:33 hello.Z
$ ./uncompress -f hello
uncompress: hello.Z: Inappropriate file type or format
$ ls -l hello*
-rw-rw-r--  1 giorgos  giorgos  0 Jun 14 13:33 hello.Z
$

PR:		46787
Submitted by:	keramida
2003-06-14 13:41:31 +00:00
Mark Murray
ef646f18aa Fix all WARNS. Checked with "make WARNS=9". Remove unused file. 2003-06-14 13:00:21 +00:00
Maxime Henrion
0792992c73 - Use _PATH_TTY and _PATH_DEVNULL macros.
- Don't fail if we can't open /dev/null since this can happen if
  xargs is jail'ed or chroot'ed.

These fixes were submitted by Todd Miller from the OpenBSD project.
There was one problem in those fixes that broke -o, which is corrected
here and should be committed to the OpenBSD repo by Todd soon.

MFC in:	3 days
2003-06-13 17:05:41 +00:00
Juli Mallett
004bd28e40 Use waitpid, instead of wait3, which is more portable.
Submitted by:	"Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from:	OpenBSD
Reviewed by:	tjr
2003-06-13 07:37:45 +00:00
Juli Mallett
815e414e17 Remove redundant return; from void function.
Submitted by:	"Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from:	OpenBSD
2003-06-13 07:25:15 +00:00
Mike Barcroft
e86c7447c2 Drop maintainership of whois(1). If someone needs a review they can
find me in the whois.c revision history.
2003-06-12 02:46:47 +00:00
Erwin Lansing
0ff30930ff add my birthday 2003-06-11 09:04:53 +00:00
Tom Rhodes
fa676bbfc8 Revert 1.52. This should have been added to fetch.3.
Discussed with:	des, ru
2003-06-10 20:34:50 +00:00
Mark Murray
96b5910f32 Revert part of the last commit. This fixes tail for pipes.
Submitted by:	joerg
2003-06-10 16:49:14 +00:00
Andrey A. Chernov
4aeece6a14 Add (unsigned char) cast to ctype macros 2003-06-10 02:18:00 +00:00
Andrey A. Chernov
ddcab7eeac Use setlocale & nl_langinfo to parse locale name 2003-06-10 02:15:00 +00:00
Andrey A. Chernov
1d35769ff1 Remove deprecated locale names 2003-06-10 01:54:10 +00:00
Philippe Charnier
49b3830c8e Introduce options definition the standard way. command -> utility. 2003-06-09 19:37:45 +00:00
Philippe Charnier
23b03a1274 Introduce options definition the standard way. Do not uppercase first
letter in FILES section.
2003-06-09 19:35:56 +00:00
Philippe Charnier
f88e6136c3 Introduce options definition the standard way. 2003-06-09 19:32:02 +00:00
Philippe Charnier
3adb4d32aa Revert previous commit, from Bruce:
This is a style bug.  err() is declared is non-returning so that every
  use of it doesn't need to be encrufted with NOTREACHED.  It's too bad
  that only gcc understands the declaration.

Asked by:	bde@
2003-06-09 19:21:35 +00:00
Juli Mallett
8ec0090099 Add sysctlbyname(3) support, and use that for uname -i, in preparation for
replacing the committed static OID version with a string-based OID_AUTO
version.
2003-06-09 10:23:43 +00:00
Juli Mallett
c4119c76f8 Make kernel identification (`ident' in the config(8) driver) available to
userland, and the kernel.  In the kernel by way of the 'ident[]' variable
akin to all the other stuff generated by newvers.sh.  In userland it is
available to sysctl consumers via KERN_IDENT or 'kern.ident'.  It is exported
by uname(1) by the -i flag.

Reviewed by:	hackers@
2003-06-09 09:38:20 +00:00
Will Andrews
dee3731d08 REST IN PEACE
Alan Eldridge
Born December 15, 1961 in Iowa
Died June 6, 2003 in Denver, Colorado

Thank you for your contributions, you
will be greatly missed.

http://freebsd.kde.org/memoriam/alane.php

(This change suggested by ru@ - thanks).
2003-06-08 21:31:10 +00:00
Ruslan Ermilov
7021331528 The sorting is by month/day/year/login. 2003-06-08 16:37:40 +00:00
Ruslan Ermilov
004699a02b Submitted by: hmp 2003-06-08 15:01:44 +00:00
Philippe Charnier
122ccb43be command -> utility. Add section number to .Xr 2003-06-08 14:38:02 +00:00
Philippe Charnier
31e7e8efc8 The .Nm utility 2003-06-08 14:36:22 +00:00
Philippe Charnier
ecccc002bc command -> utility 2003-06-08 14:35:11 +00:00
Philippe Charnier
6a1be1f51b Add section number to .Xr 2003-06-08 13:58:08 +00:00
Philippe Charnier
196604d77e typo 2003-06-08 13:51:40 +00:00
Philippe Charnier
bfd62d7094 The .Nm utility 2003-06-08 13:47:20 +00:00
Philippe Charnier
33f9fef537 The .Xr utility 2003-06-08 13:45:37 +00:00
Philippe Charnier
a8e0f0e094 The .Xr files 2003-06-08 13:43:56 +00:00
Philippe Charnier
5288a06a91 Add NOTREACHED after err() inside of a switch statement. 2003-06-08 13:39:32 +00:00
David E. O'Brien
d104f0300a Consistently use __inline for pure c89 compilers.
Submitted by:	Tim Kientzle <kientzle@acm.org>
2003-06-07 18:12:30 +00:00
Maxime Henrion
ae94787d6d Finish the implementation of the -p switch so that it
actually works.  I have no idea why this wasn't finished
and happened to try to use it.
2003-06-07 14:36:49 +00:00
Sergey A. Osokin
c842a5ca87 Add my birthday.
Approved by:	fjoe (mentor)
2003-06-06 15:08:32 +00:00
Jun Kuriyama
3a624f5e23 Use
cat ${.ALLSRC} > ${.TARGET}
rather than
	ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by:  marcel, obrien, bde
2003-06-06 13:46:55 +00:00
Marcel Moolenaar
1eb3be492d Use cat(1) instead of cp(1) so as not to break -DNOCLEAN builds
when the file permissions of source files don't allow writing.
2003-06-06 05:38:09 +00:00
Tony Finch
c2b9b6eba8 Do not dribble zero bytes into the output, by replacing an obfuscated if
whose true and false clauses were equivalent with a check that we are
not about to stumble off the end of the line.

Reported by:	peter
Pointy hat to:	fanf
2003-06-05 12:10:19 +00:00
Tony Finch
2f17b7e279 Fix substitution when the regex matches the zero-length string.
There are two bugs: in the s///g case, the substitution didn't occur
at the end of the line; in the s///N case, the code didn't count
forwards along the line properly. See the sg, s3, s4, and s5 tests
in src/tools/regression/usr.bin/sed/.

Reviewed by:	tjr
2003-06-04 15:31:55 +00:00
Tony Finch
2611a92c3a MAINTAINER line moved to MAINTAINERS file. 2003-06-04 10:01:10 +00:00
Andrey A. Chernov
3146eb4004 Change fatal to warnx() for unknown encoding 2003-06-03 16:58:31 +00:00
Peter Wemm
ec4beb5d8b Two enhancements for kdump.
1) add a "-p pid", which is rather useful for selecting a single pid in
a combined trace file (eg: with ktrace -i).
2) display binary genio data in a more precise format.
2003-06-03 01:44:43 +00:00
Andrey A. Chernov
92b49d4efa Hardcore supported encodings list 2003-06-02 19:54:29 +00:00