Commit Graph

4683 Commits

Author SHA1 Message Date
kleink
ae9d978655 Add support for the 1003.2-92 -t option to at(1) using which the time may be
specified in a language-neutral way.  For symmetry, extend this to the
batch(1) front-end as well.  Addresses PR standards/11205.
2000-10-15 14:51:14 +00:00
bjh21
2a7ec1905b HEAVY formatting cleanup. 2000-10-14 18:48:49 +00:00
is
4bd5d81118 Due to infinite wisdom by the language designers, the difference of pointers
has a type of (int) on i386 and (long) on sparc, and I don't even want to
know what else on other cpu types.
2000-10-14 18:07:10 +00:00
bjh21
1897a4fb7f Don't core dump with an empty format string. Fixes PR#11218.
Patch supplied by Launey Thomas.
2000-10-14 17:41:55 +00:00
is
3b5e0e52e8 Format string cleanups 2000-10-12 19:02:17 +00:00
thorpej
7f3f19a068 Fix int vs. long format string botch. 2000-10-11 19:30:04 +00:00
thorpej
ec185ae25b Fix a format string goof. 2000-10-11 19:28:43 +00:00
thorpej
8035db5770 Format string fixes. 2000-10-11 19:16:39 +00:00
thorpej
ef3b320608 Back out last change. It was not a format string cleanup at all,
but rather a piece of SMP development code not ready for committing.
2000-10-11 19:10:19 +00:00
thorpej
e31647affd int vs. pointer format/argument confusion. 2000-10-11 18:50:12 +00:00
itojun
81d0adc881 string length computation bug. PR 8676. 2000-10-11 16:47:22 +00:00
is
135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
enami
e92c3f2867 - The type of return value of setmode is a void * and getmode takes it,
rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
  exits immediately.
2000-10-10 14:30:40 +00:00
ad
d4f8f51f40 Nit. 2000-10-10 14:27:14 +00:00
ad
ec40993b05 Back out previous. 2000-10-09 11:14:59 +00:00
ad
6be1fe9169 Fix warning message. 2000-10-09 11:14:17 +00:00
ad
0db0171979 Back out previous. 2000-10-09 11:14:16 +00:00
hubertf
9c074f4f7a Mention that one needs to create a filesystem after formatting a disk. 2000-10-08 18:48:31 +00:00
simonb
f6518b2053 Include <string.h> to get prototype for memcpy(). Fixed compile problems
on alpha (and other LP64 archs?).

XXX: Can't gcc be fixed so that it doesn't auto-prototype mem*()??
2000-10-07 22:15:29 +00:00
bjh21
2c3ef48b5d OpenBSD revision 1.5:
Normalize treatment of -n option.  Don't know why it was ever special-cased
(since it was broken that way).
2000-10-07 21:46:39 +00:00
bjh21
2594b10381 OpenBSD revision 1.3:
for implied stdin, do not corrupt argv[0]
2000-10-07 21:13:56 +00:00
bjh21
e8234e185c Part of OpenBSD revision 1.2:
Fix err(3) usage.
2000-10-07 21:12:19 +00:00
bjh21
e5218d1719 Two classes of changes from the initial OpenBSD commit of this sort(1):
FILE * variables are called "fp" rather than "fd".
Better (safer) temporary-file handling.
2000-10-07 20:37:06 +00:00
bjh21
6029888a3a Hit sort(1) with a hammer till it compiles.
Also add RCSIDs.
2000-10-07 18:37:09 +00:00
bjh21
1d5d9b5b60 4.4BSD-Lite2 contrib/sort 2000-10-07 16:39:34 +00:00
wennmach
45c4e425e6 Move out-of-order line to where it belongs. 2000-10-05 17:50:56 +00:00
itojun
544bd86193 don't print pfkey statistics twice. from uep 2000-10-05 03:22:59 +00:00
mjl
b46ec3b29b getopt(3) returns -1 not EOF. 2000-10-04 20:09:04 +00:00
mjl
7063d4bc33 Un-__P and ANSIfy. 2000-10-04 20:02:26 +00:00
mjl
a1ac373d57 Remove unused includes. 2000-10-04 20:00:47 +00:00
mjl
8f69642d30 getopt(3) returns -1 not EOF.
Add usage().
Un-__P and ANSIfy.
2000-10-04 19:50:52 +00:00
mjl
5200bd03ee Constify tables. Re-fixes PR/6151, whose changes went lost since. 2000-10-04 19:33:16 +00:00
mjl
9ff98d4d50 Un-__P and ANSIfy. 2000-10-04 19:24:59 +00:00
mjl
277079480a Correct typo in comment.
Use errx instead of printf/exit.
Sort headers alphabetically.
2000-10-04 19:14:53 +00:00
itojun
194446c648 plug possible printf string format issue. seen on openbsd mailing list 2000-10-04 17:58:44 +00:00
itojun
58b3b7a40a plug warn() call with variable only, just in case - honor behavior of warn(NULL) 2000-10-04 08:38:09 +00:00
abs
772b3f392d Tweak last to only allow highbit characters >=160, to avoid issues with
characters 128 + 0..31
2000-10-02 18:32:55 +00:00
abs
3a7a808464 Do not strip highbit characters. 2000-10-02 18:31:48 +00:00
itojun
eccf945a90 be ready for rijndael 2000-10-02 17:46:42 +00:00
taca
20117cd175 - Knf auto variables in modified line by me.
- Print "??" as tty name instead of print nothing.  Suggested by jhawk.
2000-10-02 03:28:42 +00:00
itojun
e08dea46c9 cope with no idea/rc5 cases. 2000-10-01 22:13:37 +00:00
itojun
f15517916a MKCRYPTO_RSA is gone. TODO: idea/rc5 handling 2000-10-01 10:24:57 +00:00
jhawk
8d07b6ddd6 Return to whois.internic.net.
whois.networksolutions.com is just wrong -- it only returns information
for Network Solutions domains.
whois.opensrs.net is a bit better -- it returns information for OpenSRS
domains, and otherwise recurses to the correct whois server for other
domains -- unfortunately it is not canonical, and cannot be construed as
"correct." Other recursing proxies include whois.geektools.com and pallas.
eruditorum.org, neither of which is "official" either.

For good or for ill, we go back to whois.internic.net, which is the canonical
source for this information.
2000-09-30 14:05:48 +00:00
thorpej
9f6ddd1801 Enable the ssh build framework. 2000-09-28 22:20:58 +00:00
thorpej
03aaa05985 Update for most recent ssh source files. 2000-09-28 22:06:44 +00:00
jdolecek
f8031c2d6d add code to recognize special ftpd utmp entries and match corresponding
process accordingly, so that w parses entries made by "ftpd -U" correctly

the new code is conditionalized upon define SUPPORT_FTPD_UTMP, turned
on by default in w(1)'s Makefile

This addresses bin/11095 by Daniel Hagerty.
2000-09-28 18:20:29 +00:00
sommerfeld
e970dc32cd Move cpu header right 3 spaces to match grouping in man page 2000-09-28 14:56:52 +00:00
sommerfeld
4d7c61e467 Synch with implementation (correct problem reported in misc/11086) 2000-09-28 14:51:15 +00:00
lukem
0aa81b3ec3 explicitly use SOCK_STREAM with socket() instead of res->ai_socktype,
because it appears that linux with glibc doesn't set the latter
correctly after one of getaddrinfo() or getnameinfo().
2000-09-28 12:29:23 +00:00
lukem
ddc9ba4e19 clarify that $ftp_proxy only works for full URLs and can't be used for
interactive connections.
2000-09-28 12:26:19 +00:00
kleink
5710066a9e Spellink. 2000-09-27 11:50:15 +00:00
augustss
50891507e0 Updated version of the usbhidctl command that allows setting, as well as
reading, items.  From Dave Sainty <dave@dtsp.co.nz>.
2000-09-24 02:27:12 +00:00
simonb
cd2e1c1e91 Use ${COPY} instead of -c for ${INSTALL} commands. 2000-09-23 13:53:41 +00:00
simonb
3a3ed5c9db Get the build ordering right for all and dependall. 2000-09-23 06:18:08 +00:00
enami
f676ab58c4 Make vmstat -m to put at least one space between each numbers. 2000-09-23 00:39:19 +00:00
pooka
a8965df2d2 tweak for file 3.32 2000-09-22 16:53:39 +00:00
pooka
e5efd07a0b resolve conflicts 2000-09-22 16:34:59 +00:00
pooka
c45f82114c file 3.32 2000-09-22 16:01:07 +00:00
thorpej
c938e2e7cd Display number of zero page aborts. 2000-09-21 22:38:28 +00:00
ad
7f700a8518 Document new behaviour WRT password expiry, and Xr login.conf. 2000-09-21 11:13:06 +00:00
ad
f03c136f00 When not running as the super-user: if the user's password has expired or is
due to expire within _PASSWORD_WARNDAYS (or the setting from login.conf),
force the user to set a different password than the one they are currently
using. (Yes, it's actually worthwhile doing this.)
2000-09-21 11:11:49 +00:00
ad
07318ea12f Document `-s' option. 2000-09-21 10:29:11 +00:00
ad
80064cab88 New option, `-s': don't bother with PID files or signals. 2000-09-21 10:27:34 +00:00
ad
94fcdfba6e KNF, const. 2000-09-21 10:17:24 +00:00
tv
a5c649d5f5 Until whois supports proper recursion and/or the rwhois protocol, use
whois.opensrs.net, which does internal recursion for domain data.
Network Solutions' server recurses on only _some_ registries, and has the
damned disclaimer and advertising on no-match results.
2000-09-19 17:09:10 +00:00
christos
253750edbd Add -E "dontsendempty" flag which does not send messages that have no
data. This is useful when piping cron error output to mail. While I am
there add -~ to be a synonym for -I [but don't document it]. This is for
compatibility with other OS's.
2000-09-19 01:12:48 +00:00
abs
762a48a1a4 Do not use 'Ar' for literal arguments, update Dd 2000-09-18 16:47:11 +00:00
ad
5ab843adef - sizeof(), not constants.
- snprintf() will always terminate the output string.
- Spacing.
2000-09-18 16:00:41 +00:00
abs
75155d4d12 Switch centre to -C from -c. Now different from FreeBSD, but avoids conflict
with Solaris, Linux and others.
2000-09-18 13:42:53 +00:00
abs
ef12b8c845 Add '-c' for center (from FreeBSD) 2000-09-15 11:23:17 +00:00
mjl
32f69fdac5 Add a -f option to turn off the strict length checking for passphrases.
Also discourage its use in the manpage (and fix a couple of formatting nits).
2000-09-14 19:18:24 +00:00
mjl
64d7bd0b8c Use optarg instead of reaching beyond argv array. Fixes PR/11004
by TheMan <atatat@atatdot.net>.
2000-09-14 15:26:42 +00:00
lukem
bac7eba63f since everything else here uses ANSI C, we might as well replace __STRING()
with the ANSI C stringization stuff...
2000-09-14 13:48:33 +00:00
erh
d2f1d733d5 Switch to the user we're su-ing to sooner. This allows su to actually access the user's home directory in cases where root can't. (i.e. root=nobody NFS mounts). Also, avoid inadvertently raising the priority. 2000-09-09 18:13:05 +00:00
matt
a28f4d4751 Teach crunchgen.c about MAKEOBJDIRPREFIX. 2000-09-08 17:20:47 +00:00
mjl
e267ac2359 Oops, errx() not err(). 2000-09-08 13:14:33 +00:00
mjl
680cd1fdaa Un-__P, ANSI- and constify. 2000-09-08 13:11:03 +00:00
mjl
f9e3c9099b Use err() 2000-09-08 13:06:13 +00:00
mjl
88a0bc30c2 Un-__P and ANSIfy. 2000-09-08 12:57:28 +00:00
mjl
8de1362608 Use errx(), add usage(). 2000-09-08 12:55:36 +00:00
lukem
52b579665e always include <netdb.h>, not just when INET6 is defined.
resolves PR [bin/10970] by Richard Earnshaw <rearnsha@cambridge.arm.com>>
2000-09-08 11:54:53 +00:00
msaitoh
05e625cb7d remove extra period 2000-09-06 20:22:53 +00:00
mjl
f40dea5772 Add a setlocale() call and use strftime().
Use err() instead of fprintf + exit.
Check for extraenous arguments and complain.
ANSIfy.
2000-09-06 12:13:48 +00:00
mjl
11ce988357 Increase temporary buffer size not to truncate temp file template. 2000-09-06 10:17:01 +00:00
christos
89d34c0b70 fixed comment U -> u 2000-09-05 21:08:35 +00:00
christos
73e15c3ea3 :u modifier a'la uniq(1) [from der Mouse] 2000-09-05 17:57:52 +00:00
taca
99ebb8038f - Check return value of ttyname(3) and prevent to pass NULL pointer for
"%s" in printf style format string.
- Use STDERR_FILENO as paramter for ttyname(3).
2000-09-04 15:21:24 +00:00
ad
6be16e198e - Ignore null commands, instead of inventing a bogus match. See PR 10596.
- In switch_mode(), display status line even if switching to the same mode.
2000-09-04 12:28:12 +00:00
kleink
4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
hubertf
d374d97e3c Allow overriding _PATH_STRIP 2000-09-04 02:45:33 +00:00
aidan
b84b9c883a Check retrieved TGT against local keytab, if it exists. 2000-09-01 03:12:20 +00:00
jhawk
684592f691 Rewrite tprintstat() so that netstat -ss functionality works
correctly for the "tp:" case (family iso). To avoid serious code
space bloat, stats are now table-driven.

A side-effect is that the mbuf chain statistics have been slightly re-ordered
to follow the 3 lines of EOT stats (still under Miscellaneous) rather
than sandwiched between "dec bits" and the EOTs.
2000-08-31 06:49:42 +00:00
jhawk
a022cf9d37 Use
${MAKE}
instead of
  make
2000-08-30 23:51:46 +00:00
abs
9cf3724e46 Allow a single argument to 'volume' to set both channels. 2000-08-30 10:13:52 +00:00
lukem
b8fb63ea1c base64_encode should be static. picked up by hp/ux(!) compiler 2000-08-28 12:06:11 +00:00
lukem
a6eda9569f It appears that whilst Apache 1.3.9 incorrectly puts a trailing space
after the chunksize (before the \r\n), Apache 1.3.11 puts *multiple*
trailing spaces after the chunksize. I 'm fairly certain that this is
contrary to RFC 2068 section 3.6, but whatever...
Found by David Brownlee <abs@mono.org>
2000-08-27 06:39:25 +00:00
lukem
872f81b081 - in progressmeter() perform the check for foregroundproc() a little earlier
- removed unused variable `items' in list_vertical()
2000-08-27 06:31:23 +00:00
hubertf
e80cff4760 Add "all" mode to systat to cycle between all modes,
sort of like VMS' "MONITOR ALL"-command.

Code was submitted by Jarkko Teppo <jate@uwasa.fi> in PR 10851,
cleaned up and added 'turns' handling by me.
2000-08-25 04:48:56 +00:00
jhawk
f6260667c9 s/a.out/ECOFF/ "oops" 2000-08-24 01:20:35 +00:00
kleink
bef45d1b7d Deal with a current priority of -1; from Takahiro Kambe in PR bin/10227. 2000-08-23 07:01:58 +00:00
tron
0012d64356 Fixed reversed result test in call to chown(2) which caused bogus
error message.
2000-08-22 16:23:15 +00:00
tron
815deae8b6 Use vfork(2) instead of fork(2) to create child process for "gzip" and
wait until it terminates. Problem noted by Enami Tsugutomo on
"current-users@netbsd.org"
2000-08-22 14:20:17 +00:00
christos
2120a34cd6 - Don't core dump when we have stale utmp entries; warn the user instead.
- Make this work again in single user when invoked as uptime and utmp is
  not present.
2000-08-21 00:19:06 +00:00
jhawk
b70721109d Add kernel counters for arp events, displayable with netstat -s -f arp 2000-08-15 20:24:57 +00:00
phil
94c7405838 Tweek the "no shortcut" code.
MC_NOSHORTKEY to NOSHORTCUT
   added option "shortcut" to menuc input language.
   added example of this kind of menu in testm.
2000-08-15 02:09:11 +00:00
hubertf
4e87e20dda Changes:
* bring closer to KNF
 * when selecting a item in a menu, call the opt_action() callback with
   a pointer to the struct menudesc, so the callback has a chance to find
   out which item was selected. Having a seperate callback for each
   item is ok for small menus, but not for ones with many objects.
 * Add menu-option MC_NOSHORTCUT to not print letters ("a: ", ...)
   in front of list items. Again, this is for menues with lots of entries
   as e.g. the upcoming sysinst set_timezone() function composes.
 * Fix a long-standing bug WRT pagewise scrolling - the cursor is now
   properly placed one page up/down
2000-08-15 01:01:41 +00:00
enami
a5989caf7a Redo previous a bit different way so that mount point of top layer is shown
instead of lowest one and ``fstat file-on-upperlayer'' works.
2000-08-14 09:17:11 +00:00
enami
1dccbbfbd2 Print lower vnode if vnode is on a layered filesystem. 2000-08-14 06:03:21 +00:00
christos
a9e7fd9028 don't attempt to free varNoError too. 2000-08-13 22:47:01 +00:00
itojun
4372a4b82a -Wall friendly 2000-08-13 18:48:22 +00:00
jhawk
a80c6e8208 Fix netstat -ss handling for a bunch of ISO cases, so that
zero values are not printed.
"tp:" still needs some work, though.
2000-08-13 18:41:38 +00:00
christos
61b4051b0c be more specific about the history section. 2000-08-13 18:03:50 +00:00
jeffs
9b80c90ec0 Print ABI and mips level for "real" little endian MIPS binaries too. 2000-08-13 06:33:03 +00:00
fredb
0b2cf3e7f9 Supply missing "as". 2000-08-13 06:30:14 +00:00
augustss
da048cb7d7 Cosmetic changes. 2000-08-12 22:24:51 +00:00
jeffs
45de998997 Handle MIPS little endian output better when bfd outputs magic 8 (MIPS BE)
instead of 10 (MIPS LE).
2000-08-10 19:12:40 +00:00
thorpej
d35819d6e3 krb5_get_in_tkt() (called by krb5_get_in_tkt_with_password()) may
eventually call krb5_free_principal() via krb5_free_creds_contents(),
(when it succeeds, in particular).  Check for the creds.server
already being freed, and don't free it again.
2000-08-09 17:44:18 +00:00
mrg
14e83027c8 add sparc64 support. 2000-08-09 14:22:15 +00:00
augustss
6845241166 Fix typo so the Makefile can be used again. 2000-08-09 14:21:44 +00:00
ad
a6ecf36d33 On NetBSD, the effect of the maximum age specification and specific interval
specification are independant of one another.
2000-08-09 13:57:22 +00:00
mrg
88363a496c enable fdformat on sparc64, too. 2000-08-09 11:38:47 +00:00
assar
aa97fc7fa5 set the correct owner on the krb5 ccache 2000-08-09 02:15:27 +00:00
lukem
e3cdb47e47 * implement parseport(), which takes a string and attempts to convert
it to a numeric port number
* use parseport() in parse_url() and hookup()
* don't try and lookup the port number using getaddrinfo(), as it's too hard
  to separate a failed host name lookup from a failed service name lookup.
  this was causing lossage on systems that don't have `http' in services(5)
  (such as solaris), but only crept in when we started using getaddrinfo()
  unconditionally.
2000-08-06 08:51:22 +00:00
enami
6fc4763861 If -H, clear FTS_LOGICAL and set FTS_PHYSICAL as well as FTS_COMFOLLOW.
If -L, clear FTS_PHYSICAL as well as FTS_COMFOLLOW.
2000-08-04 09:01:05 +00:00
enami
96d6ef202a Describe -h option and xref lchflags. 2000-08-04 08:08:02 +00:00
enami
75015c55d3 - Introduce new flag -h to operate on symlink.
- Don't print (first) pathname on fts_open failure; it doesn't make sense.
2000-08-04 08:06:57 +00:00
assar
4bb88e6fb1 forced: previous was really: remove libvers, it's not being used 2000-08-03 22:58:32 +00:00
assar
6d7f2da1a1 remove -lvers, it's not used 2000-08-03 22:56:29 +00:00
assar
fc90224f06 link against the not-installed libvers 2000-08-03 22:47:37 +00:00
christos
e8b09532bb PR/10714: SUNAGAWA Keiki: Add newer hpux support, but without removing the
old hpux support.
2000-08-03 15:53:24 +00:00
ad
6b38e4b314 __RCSID(). 2000-08-03 08:25:41 +00:00
assar
549a4d9cdc update build infrastructure for heimdal 0.3a 2000-08-03 04:02:29 +00:00
thorpej
db82701e06 Fix a problem with the "distribution" target pointed out
by itojun@netbsd.org.
2000-08-02 17:04:23 +00:00
thorpej
3b5855e58d Don't syslog that krb5_init_context() failed if it failed due
to Kerberos not being configured on the system.
2000-08-02 16:51:17 +00:00
jwise
1c529a36f0 yes(1) dates back at least to v7 Unix. Closes PR bin/10403 2000-08-02 15:39:17 +00:00
thorpej
9e2765e474 If neither Kerberos IV or Kerberos V are configured, don't
issue "Warning: no Kerberos tickets issued."
2000-08-02 05:58:35 +00:00
lukem
29d497f491 - rename NO_QUAD to NO_LONG_LONG, QUAD* -> LL* and add ULL* (unsigned)
equivalents. name change suggested by Klaus Klein <kjk@netbsd.org>
- change defined(BSD4_4) || HAVE_SIN_LEN tests into HAVE_SOCKADDR_SA_LEN,
  and set the latter if BSD4_4 exists
2000-08-01 22:47:25 +00:00
lukem
8c77deb113 - we can't just rename BSD4_4 -> HAVE_SIN_LEN, since bsd systems define BSD4_4;
change tests to test for either defined(BSD4_4) or HAVE_SIN_LEN
- more KNF
2000-07-31 00:56:07 +00:00
hubertf
6f5f0322c6 Allow file(1) Magic file to be recognized as such by file(1)
Noted in PR 10712 by Jun-ichiro itojun Hagino <itojun@itojun.org>
2000-07-31 00:39:29 +00:00
lukem
88fb659da9 * always set (struct sockinet).su_len after getsockname() et al, so
that it's valid on systems which don't have sin_len and need the `compat'
  version
* fix the accept() in dataconn() to use the correct struct elem
2000-07-30 09:32:09 +00:00
lukem
fad4243147 * always use getaddrinfo() and getnameinfo() instead of maintaining two code
paths. (lukemftp will provide replacements for these on older systems)
* rename __USE_SELECT to USE_SELECT
* rename BSD4_4 to HAVE_SIN_LEN
* replace union sockunion {} with struct sockinet {}, and modify the code
  accordingly. this is possibly more portable, as it doesn't rely upon the
  structure alignment within the union for our own stuff.
  (XXX: haven't tested the ipv6 stuff)
2000-07-30 06:10:43 +00:00
lukem
241987dc61 clean up NO_QUAD support: create helper #defines and use as appropriate:
#define		NOQUAD		! NOQUAD
	-------		------		- ------
	QUADF		"%ld"		"%lld"
	QUADFP(x)	"%" x "ld"	"%" x "lld"
	QUADT		long		long long
	STRTOL(x,y,z)	strtol(x,y,z)	strtoll(x,y,z)
2000-07-30 04:42:37 +00:00
martin
ce931ccccf Just another skey compile fix. 2000-07-29 08:40:38 +00:00
thorpej
c48cedd0f4 Filter out non-alpha-numeric characters from the default
seed.  No point in generating one that skey(1) will reject.
2000-07-28 19:19:23 +00:00
thorpej
4032d79eac Rename ssh_config to ssh.conf and sshd_config to sshd.conf, for
consistency with other NetBSD configuration files, and to avoid
clashes with other SSH implementations.
2000-07-28 16:43:49 +00:00
thorpej
676ddec5ac skey_keyinfo() returns const. 2000-07-28 16:36:53 +00:00
lukem
6ac5c69c3e rename "opts" to "remopts", so people used to "o host" don't get bitten... 2000-07-28 12:01:40 +00:00
lukem
ef0145331b rename "opts" to "remopts", so people used to "o host" don't get bitten... 2000-07-28 11:45:11 +00:00
lukem
d49ddf30cd no trailing , on last item in enum 2000-07-28 11:03:13 +00:00
mjl
93afd38b8d Just return if /etc/skeykeys is missing, and remove debugging echo. 2000-07-27 14:40:58 +00:00