Commit Graph

6312 Commits

Author SHA1 Message Date
jmallett
a10a3eab32 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
fanf
1a6a93b81e 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
a8a0d26127 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
fanf
cca07433cc 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
1ef1fa0214 o Fix identation. 2003-06-30 11:51:21 +00:00
maxim
132358e7bf 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
ache
2973509c1f Back out .SU workaround - people at whois-servers.net set up
su.whois-servers.net
2003-06-29 23:56:31 +00:00
jmallett
e4f0eb6b17 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
ru
bff3635b31 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
1dfc9d7d37 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
obrien
d436927ceb Finish the deorbital burn of the i386-only a.out toolchain. 2003-06-27 03:59:46 +00:00
phantom
0247d42e0c Move scmp() to more appropriate location 2003-06-26 11:05:56 +00:00
phantom
5d0b1c2788 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
phantom
1cee3fa001 implement LC_MONETARY's int_* keywords 2003-06-26 09:07:53 +00:00
phantom
3a0952afbd 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
phantom
dabc26f3d3 Catch up with _PATH_LOCALE move from rune.h to paths.h 2003-06-25 22:31:42 +00:00
mikeh
310292ecea Restore INET6 option from config.h.
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
2003-06-25 15:53:25 +00:00
smkelly
e0b3f0f6dd Add my birthday to the calendar.
Approved by: jeff (mentor)
2003-06-25 05:42:32 +00:00
julian
4e5ab31742 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
ache
d847b7379e 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
19daaad84f 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
jmg
cb1a37be82 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
dds
ddfc44b725 New committer Diomidis D. Spinellis - dds@FreeBSD.org
Approved by: schweikh (mentor)
2003-06-23 20:54:33 +00:00
ache
36dda4df49 FIx catalog name I overlook in prev. obsolete locales removing
Submitted by:   ru
2003-06-23 13:08:22 +00:00
ru
10c96787fe We use modernized version of soelim(1) shipped with Groff. 2003-06-23 12:03:22 +00:00
maxim
4b2734a688 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
grog
b205310e43 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
phantom
4a223af282 Hook locale(1) to build 2003-06-22 08:41:03 +00:00
phantom
156e622cec document 'list' keyword & fix few typos 2003-06-22 08:39:29 +00:00
phantom
4a4e5e1b0c 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
phantom
fd37a65ee7 Add WARNS 2003-06-22 08:24:53 +00:00
phantom
8672740803 Fix few typos and remove two unneeded checks
Noticed by:	ache
2003-06-20 13:29:43 +00:00
phantom
867efbedc0 We have manpage now, so remove NOMAN 2003-06-20 13:24:46 +00:00
phantom
694d30f131 Fix most warnings, sort prototypes, kill spaces at EOLs 2003-06-20 13:23:51 +00:00
phantom
51f92bbd16 Add minimalistic manual page for locale(1) 2003-06-20 11:52:05 +00:00
phantom
18514afb9b 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
mbr
27abef6699 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
6210723d81 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
jmg
092e1e40c6 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
charnier
501fae1f3a Bump WARNS to 6. Add usage(). Use provided xmalloc() instead of malloc().
Use err().
2003-06-17 19:58:33 +00:00
mikeh
aac5ea6d37 Update for latest lukemftp import. 2003-06-16 02:37:42 +00:00
markm
e0632d72f0 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
charnier
d46a4b84c3 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
rwatson
fa79ce5f40 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
rwatson
b0de3b78d3 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
obrien
7ea86c6d90 Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
trhodes
23174ba968 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
markm
0a322f49b1 Fix all WARNS. Checked with "make WARNS=9". Remove unused file. 2003-06-14 13:00:21 +00:00
mux
56e414d2aa - 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
jmallett
d187b499cb 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