Commit Graph

2304 Commits

Author SHA1 Message Date
mikel 0e938119f9 make usage string match manpage 1997-07-01 06:39:38 +00:00
jtc b70081bba0 Changed format directive for printing number of blocks from %4ld to
%4qd as the st_blocks field is a int64_t.  Fixes PR 3814.
1997-06-30 21:26:57 +00:00
christos c897d730b5 - Cleanup warnings
- Move ttymsg to libutil.h
1997-06-29 18:28:18 +00:00
lukem 4a8077f211 Provide a different error message than `invalid url' when an
auto-login ftp URL is used when $ftp_proxy is defined. It now prints:
	Auto-login using ftp URLs isn't supported when using $ftp_proxy
Should solve rest of [bin/3643].

Whilst this is inconsistant with the behaviour when $ftp_proxy isn't
defined, the following constraints apply:
* it's not possible to support ftp URL auto-login when $ftp_proxy is
  defined, since it uses http not ftp, and you can't `login' to http
  servers; fudging this would require a major rewrite of ftp anyway)
* silently ignoring $ftp_proxy and not using it if an ftp auto-login
  URL is given is bad user interface design)
* mrg & others will harrass me if I remove support for autologin ftp URLs
  when $ftp_proxy isn't defined, even though it made the behaviour
  consistant whether $ftp_proxy was set or not.
1997-06-29 06:34:50 +00:00
lukem 6840bd89be Don't leak some information (``you have no s/key'').
Only information leaks now are:
* if '-s -s' is used (only allow s/key users, and force s/key use),
  then "login incorrect" will be given if a non-s/key user (or
  non-existant user) attempts to login; no password will be prompted
  for.
  XXX: maybe this should be fixed, but further analysis is required.
* an s/key user will be reminded in the "Password" prompt that they
  have an s/key. Therefore it would be possible to determine if a user
  is active on the machine if they have an s/key.
  XXX: maybe an option is required to control this behaviour
1997-06-29 02:38:25 +00:00
tls a264bd54a1 Fix several bugs in Kerberos support due to an accidental commit months ago of an incomplete version of the code. Now works; also now falls back to 'old' rlogin correctly. 1997-06-28 23:43:36 +00:00
lukem 8d846dbbd1 * Notify of impending password or account expiry (check against
_PASSWORD_WARNDAYS from <pwd.h>). For non-root users, enforce expiry when
  it happens. From Simon Gerraty <sjg@zen.void.oz.au> in [bin/935].
* Check for group 0 in process's current group membership (as returned by
  getgroups(2)), instead of just looking at the entry for wheel in /etc/group.
  Based on code by Dan Caresone <dan@oink.geek.com.au> in [bin/792], and
  also solves [bin/2466].
* Clean up to pass -Wall
1997-06-27 17:01:53 +00:00
lukem 9c9e83ed7f use _PASSWORD_WARNDAYS from <pwd.h> 1997-06-27 16:42:22 +00:00
kleink 52a3f39615 POSIX.2 utilities must call setlocale(LC_ALL, ""); 1997-06-26 23:18:05 +00:00
kleink 0505614d4e Fix formatting directives; from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
in PR misc/3795.
1997-06-26 20:23:44 +00:00
lukem 5170144fac Apply [bin/3270] from Simon J. Gerraty <sjg@quick.com.au>, with fixes by me:
* if the user has an s/key, provide a reminder in the password prompt
* if '-s' is given once, force a user that has an s/key to use it
* if '-s' is given more than once, only permit s/key logins
1997-06-25 00:15:04 +00:00
mikel f60c9adfd6 include <string.h> and <unistd.h> for prototypes 1997-06-24 06:18:58 +00:00
lukem 4182cf294c Add support for -0 (to be used with find -print0); from OpenBSD.
Clean up man page a bit.
1997-06-24 00:45:28 +00:00
mrg 586ed80911 install all man pages. 1997-06-23 13:25:41 +00:00
lukem 806ac9275c Install statically linked, as suggested by mrg@eterna.com.au in [bin/1715]. 1997-06-23 12:47:45 +00:00
veego de140ea979 Move stdio.h before skey.h to get the FILE struct. 1997-06-23 11:19:10 +00:00
mikel 63482e654c include <skey.h> for skey function prototypes, add parens for gcc -Wall 1997-06-23 01:20:40 +00:00
christos 0dd9a66363 Don't need "md4.h" and "skey.h" -> <skey.h> 1997-06-22 18:51:47 +00:00
christos f109caff0b - Don't need extra CFLAGS anymore
- Remove skeyinfo.
1997-06-22 18:51:15 +00:00
christos e4078d59e4 Add skeyinfo 1997-06-22 18:50:33 +00:00
christos eb3207d9ee PR/3417: Andrew Brown: Skeyinfo should be a program so that if /etc/skeyskeys
is mode 600, it can only read the user's own keys.
1997-06-22 18:49:55 +00:00
christos f2ad06ea17 Now this is a separate program. 1997-06-22 18:44:37 +00:00
mellon 3921fa8412 Prototype everything, fix RCS Id 1997-06-21 04:41:27 +00:00
lukem 19474db41e Ensure calendar doesn't go past \0 in a string.
From Douglas Crosher <dtc@scrooge.ee.swin.oz.au> in [bin/1018]
1997-06-20 08:11:34 +00:00
christos 1f54dc36dd Use mkstemp 1997-06-18 19:08:29 +00:00
christos f8c7b1919f Kill warnings in skeleton for gcc -Wall 1997-06-18 19:08:05 +00:00
mikel ddeaf8c1de fix off-by-one error in malloc() call; from Ted Felix in PR bin/3752. 1997-06-17 07:26:38 +00:00
thorpej 1fb754977a Need <sys/exec.h> to get stuff that <machine/ecoff_machdep.h> needs. 1997-06-16 22:10:27 +00:00
christos 47af6101e4 - PR/3727: Wolfgang Rupprecht: rsh takes 80% of the cpu
- rsh/rcmd combinations don't die sometimes, and spin in poll loops
    + detect errors from read/write etc, don't ignore them in some cases
    + use INFTIM instead of 0 in poll
    + detect invalid file descriptors in poll
    + use varargs/stdarg as appropriate
    + use posix signal calls
    + EWOULDBLOCK -> EAGAIN
1997-06-16 20:54:16 +00:00
jtk c637244f86 improve (slightly) dense wording in the bugs section 1997-06-16 02:13:46 +00:00
jtk 9ed98415a3 exit with error if extra arguments are left on command line 1997-06-16 02:10:45 +00:00
bouyer 558f2d0ebe Make this compile again, and add support for ext2fs.
Also 2 ufs->ffs conversions in pstat.8.
1997-06-12 07:45:28 +00:00
lukem 3e92284533 * Only print the progress bar when ftp(1) is the foreground progress.
Patch from enami tsugutomo <enami@ba2.so-net.or.jp> in [bin/3735].
* Fix punctuation.
1997-06-10 21:59:58 +00:00
lukem a95a28e4d8 Don't use editing or progress bar if $TERM isn't set or is "dumb". Fixes
emacs ange-ftp. Suggested by Todd Miller <Todd.Miller@courtesan.com>,
tested by matt green <mrg@eterna.com.au>
1997-06-10 07:04:43 +00:00
christos 9981dd99c2 Apparently, using _doprnt(_IOREAD) to emulate vsnprintf() on SVR4 *sometimes*
core-dumps; use sprintf()+strlen() for now.
1997-06-07 16:42:31 +00:00
christos 702a3f7097 Deal with archive.a(member.o) nodes when expanding .USE dependencies or
adding children to .OODATE.
1997-06-07 16:41:09 +00:00
christos fab62ec0e9 Don't confuse `member' with `target' 1997-06-07 16:39:45 +00:00
jtk 8bd5e0fbf3 remove spurious comma in newstyle structure return case 1997-06-06 17:27:33 +00:00
mrg 66bc7bd651 fix PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
- don't pass pw->pw_name into functions; make a copy.
1997-06-05 16:10:46 +00:00
mikel c1c7844b3d fix typo in SYNOPSIS, nuke duplicate RCSid 1997-06-05 06:35:24 +00:00
leo bafe3a5dcf Use MACHINE instead of MACHINE_ARCH to make fdformat on the atari. 1997-06-04 13:54:08 +00:00
mikel b606e6941b fix some minor macro usage and other bugs; some from Saitoh Masanobu
in PR misc/3656, others by myself.
1997-06-03 06:31:20 +00:00
mycroft eed746a9eb Don't interpret _POSIX_VDISABLE as a special character. 1997-06-03 01:51:43 +00:00
mrg 701a388310 rsh is not setuid anymore. 1997-06-02 11:58:13 +00:00
mrg 32b4c34ed2 rcmd(1) does not use argv[0] for hostname, like rsh does.
apply patch for pr#3695 from <hannken@ppp-jhi.eis.cs.tu-bs.de>.
1997-06-02 11:57:23 +00:00
kleink 86d80fb61d Determine characters to be swallowed by means of locale and ctype.
This addresses PR/3693 from Jaromir Dolecek <dolecek@moria.ics.muni.cz> but
does not really fix it, as the new ctype package has yet to be integrated.
1997-05-31 15:13:49 +00:00
cgd c917dfb5b2 Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
	.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
	.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
pk 3552d54978 Erase spurious character. 1997-05-26 23:07:31 +00:00
pk 7abb0d066d Minor formatting glitch. 1997-05-26 21:04:28 +00:00
mrg bf96b282ae rdist is no longer setuid root. 1997-05-26 14:30:47 +00:00
mrg 04bd3838df add bits to allow this to be compiled as rcmd. 1997-05-26 14:29:36 +00:00
cjs c2f4b90a72 PR 3666 from Thorsten Frueauf <frueauf@ira.uka.de>
Fix formatting.
1997-05-25 03:52:45 +00:00
lukem 8b0030a6fc Simplify NLST parsing code in complete_remote(); just basename each of
the returned names! Fixes parsing problems caused by the differences
between NLST output on BSD, Solaris, and Windows NT.
1997-05-24 16:34:30 +00:00
jtc 8fd3f56f2c Use the new getmaxx and getmaxy macros instead of directly accessing
the private fields of WINDOW.
1997-05-24 00:48:24 +00:00
lukem c04e79d154 url_get(): use origline in some messages, simplifying them, and free up copy
of origline before returning. also, previous commit (fix for [bin/3643]) was
inspired by suggested fix in said PR by Alan Barrett <apb@iafrica.com>.
1997-05-23 18:54:18 +00:00
lukem 7cb8cd9611 Actually report why certain URLs are invalid, rather than just exit
with a non-zero exit code. fixes most of [bin/3643].
1997-05-23 18:42:36 +00:00
augustss f02b371b53 Improve printing of values when changing a variable. 1997-05-23 17:55:29 +00:00
christos aef7001870 PR/3660: Dave Huang: Fix formatting misalignments in appletalk
PR/3659: Dave Huang: Fix PCB reporting in appletalk
1997-05-22 17:21:26 +00:00
augustss 72a30783f7 Fix pasto. 1997-05-21 22:25:13 +00:00
lukem c3d0010341 remove use of register. 1997-05-21 02:20:15 +00:00
lukem 9f26a55f84 * free up returned data if yp_master() or yp_match() failed
* simplify two case 'switch'es into 'if' statements
1997-05-21 02:19:06 +00:00
lukem 43b1f9b62a * free up data after a failed yp_match()
* simplify a two case switch into an if statement...
* remove use of register
1997-05-21 02:09:51 +00:00
mycroft c19bda7d4c Check the .PHONY attribute... 1997-05-20 22:53:30 +00:00
augustss 677762bbed Fix bugs when recording source is a set. 1997-05-19 17:32:07 +00:00
augustss 3f516911f6 Fix some buglets and clean up a little. 1997-05-19 16:32:54 +00:00
kleink 85793595bf Fix lossage revealed by the recent `lseek() vs. negative offsets' changes;
from John F. Woods <jfw@jfwhome.funhouse.com> in PR/3634.
1997-05-19 10:01:52 +00:00
mycroft 79bc5bb41f Use inet_aton(3) rather than inet_addr(3). 1997-05-19 03:44:43 +00:00
mjacob 9c69077919 Macro expansion of shell metacharacters did not occur for me. I made
a :sh variable to get the list of magic files instead.
1997-05-17 21:15:35 +00:00
pk 62972ee658 * NULL => 0 (Arne Juul; PR#3629)
* Nuke spacoids.
1997-05-17 20:26:47 +00:00
pk 4e8f3bc55c * NULL => 0 (Arne Juul; PR#3629)
* Use braces in initializers.
1997-05-17 20:24:26 +00:00
pk b55c3729fe NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
pk e6d7c2dd4e * NULL => 0 (Arne Juul; PR#3629)
* Insert prototypes.
1997-05-17 20:06:57 +00:00
pk f890b048ac NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:47:50 +00:00
pk 585a85d3d0 * NULL => 0 (Arne Juul; PR#3629)
* Nuke spacoids
1997-05-17 19:46:27 +00:00
pk f6d87734a6 NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
jtk f0cba0dcb5 MIPS RS3000 should be R3000 1997-05-17 12:36:22 +00:00
augustss 240af559df Add HISTORY section. 1997-05-15 16:38:34 +00:00
veego cb2070d1b6 Replace the clean target with a CLEANFILES+= line 1997-05-15 10:08:47 +00:00
gwr 3ec69570ea Change .PATH.c to .PATH (another one I missed) 1997-05-14 15:57:07 +00:00
mellon 6aaccda600 DC is not a user-settable variable, but was being partially confused with one 1997-05-14 00:20:01 +00:00
gwr 7616209210 Change .PATH.c back to .PATH (missed this one) 1997-05-13 23:48:31 +00:00
augustss 9d5e7c9a4c Add audio utility programs.
The audio device can be inspected and changed by audioctl,
and the mixer device by mixerctl.  The command syntax was
inspired by sysctl.
1997-05-13 17:35:50 +00:00
mikel d42ad5411c don't try to ignore invalid signal; fixes PR bin/2901. 1997-05-13 06:48:42 +00:00
mikel 254cb6fdc9 fix some potential buffer overflows, and other cleanup. 1997-05-13 06:15:52 +00:00
mikel b674a8fd0e fix typos noted by Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>. 1997-05-13 04:15:06 +00:00
lukem 808ec252ad don't print -ve ETA if file size has grown. noticed by hpeyerl@netbsd.org 1997-05-12 11:41:13 +00:00
mikel 90842c1ab1 xref sigaction(2), not obsolete sigvec(2). 1997-05-12 08:03:28 +00:00
mikel fdae96ca39 fix a typo, noted by SAITOH Masanobu in PR misc/3599.
while I'm here, fix some other nits.
1997-05-11 07:22:35 +00:00
mycroft 2d4fff450e Add another .PHONY. 1997-05-10 14:30:38 +00:00
mycroft 70f7fd1f59 Hack to work around compiler bug for now. 1997-05-09 18:07:23 +00:00
christos 041c0c5158 Change the way curdir is handled [this started at the previous version]...
Instead of adding it in .PATH, handle it specially the same way as "." is
handled.
1997-05-09 17:05:59 +00:00
mycroft caabb7f9be Clean up these Makefiles some more. 1997-05-09 15:04:03 +00:00
mycroft ed67bf81a0 Use DPSRCS. 1997-05-09 13:28:39 +00:00
mycroft cbd2582f5b Make these work again. 1997-05-09 12:38:30 +00:00
mycroft cc4a1553a1 Eliminate bogus redefinitions of standard targets. 1997-05-09 07:50:03 +00:00
mycroft f88245a571 Make sure to propagate OP_PHONY to all cohorts that already existed. 1997-05-09 04:08:26 +00:00
mycroft 8aed472136 Fix description of .NOPATH. 1997-05-08 22:34:34 +00:00
gwr bf6930a26c Add the new .NOPATH feature which can be used to disable .PATH search
for particular targets, i.e. .depend, objects, etc.  (from Christos).
1997-05-08 21:24:41 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
cjs 90423c173a If the -m option is used, make will check for the existence of the
directory specified, and add it to sysIncPath only if it exists.
However, afterwards make tested for the presence of a -m option by
checking to see if sysIncPath was an empty list, and assumed that
the -m option was not used if it was empty. This obviously breaks
if -m specified a non-existent directory. So I have added a flag
that is set if the -m option is used, and I test that instead.
1997-05-08 05:19:46 +00:00
mrg ca4f633f80 ensure strncpy() is nul terminated. 1997-05-07 16:35:34 +00:00
mycroft 9091c8c59a Clean up the proginstall hacks a little. 1997-05-07 16:06:00 +00:00
mycroft 6e0450c70f Use proginstall:: to disable installing PROG. 1997-05-07 15:59:08 +00:00
mycroft 01925a4fb0 Copy the .PHONY attribute to the cohorts of a double dependency. 1997-05-07 13:12:33 +00:00
mycroft a66a01875e Ignore `-t' when the .MAKE attribute is set. 1997-05-07 07:31:37 +00:00
mycroft fd8daf980e Add .MAKE to the .OBJDIR hacks, so they work with `make -n'. 1997-05-07 07:15:34 +00:00
mycroft 755bc65362 Make sure `-n' is actually disabled for targets with the .MAKE attribute. 1997-05-06 23:51:29 +00:00
mycroft b160845c38 Document .PHONY better. 1997-05-06 22:29:43 +00:00
mycroft 5be8dcf32a Don't do a suffix search for a .PHONY target. 1997-05-06 22:06:58 +00:00
gwr d9a167a17b Use .PATH.c: ... 1997-05-06 21:42:56 +00:00
mycroft bcc725c5e3 Don't do a VPATH or .PATH search for .PHONY targets. (From Christos.) 1997-05-06 20:59:42 +00:00
mycroft 0997556292 Don't touch .PHONY targets. 1997-05-06 20:57:47 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
christos 193e8d1b7d - Target searching addition:
Make used to only use the search path for nodes that were pure
	sources (not targets of other sources). This has been corrected
	and now gnu-autoconf generated Makefiles work in directories other
	than the source one.

- Suffix transformation rescanning:
	Suffix transformations (.c.o:; cc ...) were only recognized in
	the past when both suffixes were members of the suffix list.
	Thus a sequence like:
		.z.b:
			echo ${.TARGET}
		.SUFFIXES: .z
	would cause .z.b: to be inserted as a regular target (and the main
	target in this case). Other make programs always add rules that
	start with a period in the transformation list and never consider
	them as targets. We cannot do that (consider .depend files) so we
	resort to scanning the list of the current targets every time a
	suffix gets added, and we mutate existing targets that are now
	valid transformation rules into transformation rules. If the
	transformed target was also the main target, we set the main target
	to be the next target in the targets list.
1997-05-02 14:24:27 +00:00
christos 6cfa2388a9 Make used to add every directory where it found files in the search path.
I.e. if you had a line in your Makefile:
	../foo.o: foo.c
`..' would be added in the search path. The addition of such paths has
been now disabled. If a pathname contains a slash, then the directory
where such a file is found is not added to the search path. Of course
this eliminates most (all?) use of this function.
1997-05-02 14:23:51 +00:00
mellon 64b4faf663 Don't look at archive information on platforms that run ELF binaries 1997-04-26 07:11:14 +00:00
mycroft b279956f2c Use futimes(2), to prevent race conditions. 1997-04-24 06:22:16 +00:00
mycroft a81c377258 Truncate large UIDs and GIDs to USHRT_MAX, to accomodate the antiquated file
format.
1997-04-24 06:16:45 +00:00
kleink 7e36e158cf warn() instead of warnx() if opening the object file failed to avoid
confusion.
1997-04-23 11:17:38 +00:00
mikel 75418659ae use mkstemp() and plug memory leak; fixes PR bin/3517. 1997-04-23 07:11:09 +00:00
mrg d4aff75405 more.help no longer exists. 1997-04-23 03:11:02 +00:00
mycroft c734e2b3a4 Document that we handle `Precedence: list'. 1997-04-22 17:07:25 +00:00
mrg f27f869b2e script to help future less imports. 1997-04-22 14:32:27 +00:00
mrg 4b127c5d53 these files do not exist anymore. 1997-04-22 14:25:44 +00:00
mrg dd5c32d31d merge in less 321. 1997-04-22 14:16:18 +00:00
mrg 6be816bf44 import of less 321 1997-04-22 13:45:39 +00:00
mrg 9eab5a002c import of less 321 1997-04-22 13:45:11 +00:00
mikel 1e578d5d67 Note that the 'arch' flag may only be changed by the superuser; from
Paul Boven in PR kern/3491.
1997-04-22 05:54:13 +00:00
lukem 4ecb9a5a20 * cleanup parser of ftp://[user:pass@]host[:port]/[dir/][file]. should
be more robust now. fixes [bin/3520]. (missed this in previous commit msg)
* rename bad_url: to bad_ftp_url:
1997-04-21 18:45:47 +00:00
lukem d0e2ef4d67 i 1997-04-21 18:41:03 +00:00
is ab90e48ac0 Use isprint() instead of hardcoded c<' '. This way, as soon as isprint() and
friends are localized, talk will be able to communicate in (e.g.) ISO-8859-1.
Patch by Matthias Scheler (PR bin/2874).
1997-04-21 16:15:32 +00:00
mellon 11be63105a Set CLOCAL if dc flag is set 1997-04-20 00:03:05 +00:00
mellon b6e16df6f2 Add boolean for dc flag 1997-04-20 00:02:45 +00:00
mellon d9be4478ec Set O_NONBLOCK if dc flag is set. Don't set HUPCL if dc flag is set. 1997-04-20 00:02:10 +00:00
thorpej 6833a50866 Add support for the PowerPC. 1997-04-19 06:16:29 +00:00
thorpej 972c977c65 Change booleans from char to int so that comparisons against negative
values work as expected on systems with unsigned chars.
1997-04-19 06:06:06 +00:00
thorpej 4e82c2acc2 getopt() returns:
- an int, not a char, and
- -1 upon completion, not EOF.
1997-04-19 06:04:54 +00:00
thorpej 6eb4708731 Add two more casts to (unsigned char) to make this work on the PowerPC. 1997-04-19 05:21:36 +00:00
thorpej d5cbc0dd6f Don't build the BSD toolchain on the PowerPC. 1997-04-19 05:17:45 +00:00
mikel e66130db20 use proper pathname when unable to exec strip 1997-04-19 03:50:29 +00:00
thorpej 00b4f27f35 Allow the environment variable $STRIP to override _PATH_STRIP for
`-s', helping out cross-compiling.
1997-04-17 07:56:55 +00:00
thorpej af1cedb966 - Don't bother with two different versions of lorder.sh ... the version
for GNU nm(1) works just fine with the NetBSD nm(1).
- Allow the program to use for nm(1) to be overridden with the variable
  $NM.
1997-04-17 06:48:10 +00:00
lukem b65e7b7f4d use <paths.h> instead of "pathnames.h" for _PATH_DEFTAPE
change refs to rmt* to rst*
1997-04-15 07:23:06 +00:00
mikel bfba04e072 be a bit more careful about removing TAGQ from CIRCLEQ; from Ross
Harvey in PR bin/3489.
1997-04-15 05:39:46 +00:00
leo 48e267e695 Make it obey the DESTDIR environment. 1997-04-14 13:49:56 +00:00
lukem a9a78ba448 More enhancements/bugfixes (when will it end?)
* differentiate between being connected, and being logged in
* cleanup some text messages
* support username & password ftp URLs (ftp://user:pass@host/) in non-proxy
  situations; assume proxy supports it for proxy situations.
* cd to / before performing any autofetch transfers
* use strncasecmp in URL parsing. fix from <Todd.Miller@courtesan.com>
1997-04-14 09:09:15 +00:00
mrg 8d51c2f90d properly terminal buffer after calling strftime. 1997-04-13 13:44:13 +00:00
jeremy dd74602dad Changed inaccuracy in termination description described by PR#2226. 1997-04-10 20:22:50 +00:00
is c0515bc6f2 Repair the formatting of the by-memory-type table of "vmstat -m"
("MSDOSFS mount" is too big for %12s).
Note that this breaks naive parser scripts, but they would not parse
the earlier "MSDOSFS mount" line correctly, anyway.
1997-04-10 15:49:30 +00:00
christos 38ec358de7 Make the first field 2 characters wider so that XXX.XXX.XXX.XXX/XX fits.
From Kimmo
1997-04-10 15:45:58 +00:00
is f70c0e95c8 "undefined" -> "undef/%d" for memory type names. Similar, but not identical
to Ken Raeburns proposal from PR 1012, herewith closed.
1997-04-10 15:23:50 +00:00
mikel f78e29b2a9 descend unconditionally for clean and cleandir targets 1997-04-09 06:23:40 +00:00
mikel 3bafb68ebf more column alignment fixes 1997-04-07 06:58:18 +00:00
christos 5fe1aec948 PR/3451: Anders Hjalmarsson: Column alignment fixes after the netatalk addition. 1997-04-07 03:04:24 +00:00
lukem d473547d56 * support $ftp_proxy for ftp:// transfers [bin/3245]
* add "more" & "less" as synonyms for "page"
* move editline setup code into controlediting(), and call appropriately.
  only setup setup terminal if going into interactive mode. inspired
  by Todd Miller <todd.miller@courtesan.com>
1997-04-05 03:27:32 +00:00
christos 8913266731 PR/3445: NAKAJIMA Yoshihiro: Typo fix 1997-04-03 15:28:06 +00:00
mikel 8e4e532ceb include magdir/386bsd in MAGFILES; from Alan Barrett in PR misc/3422. 1997-04-03 07:17:24 +00:00
mikel e5159ae768 use correct source path; from Jeff Thieleke in PR bin/3414. 1997-04-03 07:13:31 +00:00
mikel 53704bc733 erase old Xs when printing new ones for swap usage; from Paul Boven in
PR bin/3431 with some changes by me.
1997-04-03 06:07:40 +00:00
christos c3a7122e73 - netatalk additions
- printf format fixes
- minor prototype cleanups
1997-04-03 04:46:44 +00:00
mrg b5b1013d11 fix buffer overrun; from bostic (via perry (via freebsd)) 1997-04-01 14:20:34 +00:00
christos 85d90bc463 PR/3416: enami tsugutomo: fix bug introduced in previous change to handle
long hostnames.
1997-03-31 04:13:15 +00:00
christos 3c24c46e1c PR/3399: Tatoku Ogaito: Careful with not null terminated utmp strings. 1997-03-29 23:21:37 +00:00
christos c6662d5a28 PR/3406: SAITOH Masanobu: Delete extra backslash in mesg.1. 1997-03-29 21:43:03 +00:00
christos e5c746f479 Don't disable wildcards completely; they are used by other Makefiles. 1997-03-29 16:51:26 +00:00
christos bdae19cbd2 Make sure that the children of nodes that are marked .MADE, are marked
UPTODATE and their timestamps are consistent.
1997-03-28 22:31:21 +00:00
mycroft 5d918be419 Minor formatting changes to make the output less ugly. 1997-03-28 02:15:21 +00:00
christos b4fe701a22 - Disable globbing for targets/dependencies when POSIX is defined.
- Fix globbing so that patterns that don't have a matching number of [] or {}
  don't get expanded. (before the [ case got expanded to nothing!) This is
  disabled.
1997-03-27 17:20:18 +00:00
mycroft c2c16c1c2c Set SCRIPTSDIR. 1997-03-27 11:06:20 +00:00
mycroft 0d07ddd923 Set FILESDIR correctly. 1997-03-27 08:59:22 +00:00
mycroft 90de81834d Set SCRIPTSNAME correctly. 1997-03-27 08:57:26 +00:00
thorpej 87ca1d62e0 Print Ethernet and FDDI addresses in the same format as ether_ntoa().
From Matt Thomas <matt@3am-software.com>
1997-03-26 01:49:44 +00:00
christos 3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +00:00
gwr f17ca2c65c Do not compile-in ${MACHINE} (as per PR#3386, OK'ed by christos) 1997-03-24 20:56:36 +00:00
christos 69ad8a6988 Locate all the children of a node marked as MADE. 1997-03-23 01:25:28 +00:00
lukem 4e01c5d008 use mkstemp() instead of mktemp() 1997-03-22 03:42:57 +00:00
lukem 0c81e58868 use mkstemp() instead of mktemp() to create the tempfile 1997-03-22 03:38:03 +00:00
mikel 2a8b3fc882 use FD_SETSIZE instead of manifest constant for select(2); from Rolf
Grossman in PR bin/3338.
1997-03-19 05:36:59 +00:00
christos 161ba8eea5 Fix problems in the RE substitution error handling. 1997-03-18 19:24:46 +00:00
mycroft 19d55000f7 Get the byte-swapping right in netmask(). 1997-03-18 03:40:10 +00:00
thorpej 6fac7758e7 Fix typo, per Dave Huang <khym@bga.com>, PR #3345. 1997-03-18 00:40:13 +00:00
christos 852505afb6 Fix pasto in error message. 1997-03-16 19:46:02 +00:00
christos 9384236fae Add support for installing hard and symbolic links via the [-l harms] flag. 1997-03-16 19:43:19 +00:00
lukem ae07641250 Fixes from <Todd.Miller@cs.colorado.edu>, with some cleanup and reworks by me:
* only echo "Passive mode" in verbose mode; scripts that use ftp
  may get unwanted output otherwise
* disable progress bar and modification time preservation when
  retreiving to a non-regular files. fixes progress bar getting in
  way of "get file /dev/tty"
* setup el_init() et al if editing is set, not if fromatty.
  TODO: migrate this to a function, and call if editing is turned on later
	in the session. also implement edit_cleanup if editing is turned off
* call el_set() after setting SIGWINCH handler. This fixes the problem
  when suspending in a non-cbreak shell (e.g, csh) would trash your tty mode.
* reset interactive mode correctly in auto_fetch() mget mode
1997-03-16 14:24:14 +00:00
christos 067f3f2db4 SMALLFTP->SMALL; remove SMALL from Makefile 1997-03-14 01:39:31 +00:00
cgd bd158ef43d use ${MKDEP} (and ${MKDEPFLAGS}) properly; from Thorsten Freauf in PR
bin/3325.
1997-03-13 23:23:38 +00:00
christos 49258416ec Deal with SMALLFTP a bit differently [by compiling complete.c] 1997-03-13 22:38:39 +00:00
lukem 3b5054739d Features:
* support remglobbing of auto_fetch arguments
* new flag - '-e'; disable editing
* "page file" == "get file |${PAGER-less}"

Bugfixes/cleanup:
* consistently use a trailing '.' on messages
* code cleanup, including buffer overrun fixes, use puts
  and putchar in places, etc (inspired by OpenBSD mods)
* disable progress bar when local-file is a pipe or '-'
* skip \r in http headers
* fix remote ftpd slash bug more elegantly (so it works with ////)
* abort_remote(): check if cout==NULL before using it. should fix [bin/3273]
* fixed up cosmetic problems when complete_remote() generated errors from the
  remote server (such as "no files found", "login with user and pass", ...)
  done by adding extra argument to remglob(), which is a pointer to an error
  buffer to put messages in rather than printing to stdout.
1997-03-13 06:23:11 +00:00
mikel cea63f2488 add missing backslash; from David Brownlee in PR bin/3321.
also cleanup RCSids a bit.
1997-03-13 04:57:46 +00:00
mikel ee2f9698ff use ${MKDEP} (and ${MKDEPFLAGS}) properly; from Thorsten Freauf in PR
bin/3325.
1997-03-13 04:24:38 +00:00
mycroft fd38f3efbc Remove hack for (very old) GCC bug on i386. 1997-03-12 18:28:55 +00:00
mycroft 2c450c6cc2 Remove kluge for GCC bug on m68k. 1997-03-12 18:13:17 +00:00
christos dd0a1d0814 Add a .MADE directive to indicated that the children of a target are
up-to-date, even when they are not. This is to simulate our current
make install behavior with proper dependencies.
1997-03-10 21:19:49 +00:00
thorpej d7fa8cdb0d Use a slightly more sane way to cheat around XXX_BROKEN_GCC on the m68k.
The old way was more complex than necessary, and buggy, as pointed out
by Bruce Albrecht <bruce@zuhause.mn.org> in PR #3309.
1997-03-10 17:29:05 +00:00
fvdl ff19eb6a74 warnx --> warn, warnx wasn't needed anymore after previous change
(pointed out by enami tsugutomo)
1997-03-10 14:14:37 +00:00
cgd d15724228e print out a
rwho: no hosts in /var/rwho.
message like ruptime does, for consistency.  (Similarly, exit with exit
code 0, though i'm not sure that's "correct" for either.)
1997-03-08 23:08:28 +00:00
cgd 31b388d823 add rwhod(8) xref 1997-03-08 22:23:19 +00:00
mouse ee6a5b2cd6 alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
mouse 650ee578da alternate -> alternative, per PR 2643 1997-03-08 14:13:54 +00:00
mikel e1525d735d merge lite2 changes (just SCCS ids) 1997-03-07 06:14:02 +00:00
fvdl 720565ab4f Correct error in previous. 1997-03-06 16:09:45 +00:00
fvdl 3ee3460f02 Don't bail out when chflags() fails with EOPNOTSUPP. Fixes PR #3288 1997-03-05 23:48:47 +00:00
explorer 1a20e46715 s/strcnpy/strncpy/ typo 1997-03-04 00:21:13 +00:00
explorer 3f120170b2 Add a double quote to make emacs's color mode happy... 1997-03-03 22:47:17 +00:00
explorer 5c1fdae73d Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:22:48 +00:00
explorer a030e0a1ae Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:12:19 +00:00
mikel e60e80fff9 pass $SHELL or /bin/sh as argv[0] to subshell, instead of "sh"; fixes
PR bin/3276.
1997-03-03 04:02:21 +00:00
mikel a9513a3823 fix typo; from Andrew Wheadon in PR bin/3264. 1997-02-28 06:35:48 +00:00
jonathan f0f7e53290 Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".
Add code to netstat to use libkvm to for kernel variables "mclbytes"
and "msize', and if found, use those for netstat -m rather than
compiled-in defaults.
1997-02-28 00:14:19 +00:00
mikel 5ca01fc0a4 Don't assume that sun_path in sockaddr_un is null-terminated; final fix by
Noriyuki Soda <soda@sra.co.jp>.  fixes part of PR 3035.
1997-02-27 05:41:19 +00:00
mrg e3fdccd2ce oops, rsh is still setuid root for the moment. 1997-02-24 00:00:22 +00:00
thorpej a7883a4d79 If kmem stats are not being gathered by the kernel, print a useful
message to that effect.  Fixes PR #3187, submitted by
Guenther Grau <s_grau@ira.uka.de> (fix by me).
1997-02-22 02:04:42 +00:00
thorpej 46610bda06 Tidy up printf formats in "don't use all lower case" warning
message.  From Dave Huang <khym@bga.com>, PR #3198.
1997-02-22 01:50:46 +00:00
mikel 87b7b330c4 don't clobber CFLAGS 1997-02-21 07:52:37 +00:00
explorer ff34809355 Add Carl Sagan's death 1997-02-20 21:54:39 +00:00
christos 4417c4f61f Reported by cgd: fix .USE directive problems:
1. ${.*} variables did not get expanded in dependencies.
    2. expanded ${.*} variables in .USE dependencies can cause tree
       restructuring; handle it.
    3. in compat mode, expand .USE before evaluating the list of targets,
       instead of doing .USE expansions on demand, because they can cause
       tree restructuring.
1997-02-20 16:51:47 +00:00
mrg 40095a1c39 merge lite2 stuff; fix a bit. 1997-02-17 15:10:53 +00:00
mrg e2c3c3f6c8 ensure we do not dump core. 1997-02-17 06:14:25 +00:00
mrg 2d7faefcd4 merge lite2 changes. 1997-02-16 15:01:02 +00:00
cgd 91fbda1d8b tn3270 shouldn't try to do magic depending on the setting of
EXPORTABLE_SYSTEM.  Additionally, since it doesn't actually use libtelnet
for any of the 'interesting' features, it shouldn't be using libtelnet
at all (because that adds some serious headaches and problems, on ELF
systems with shared libraries, which cannot be easily addressed and
don't actually _have_ to be).  Now it simply pulls in genget.c from
the libtelnet source, and builds it locally.
1997-02-13 00:30:25 +00:00
mikel 68be8c5d1a fix typo reported by Saitoh Masanobu in PR misc/3214.
also fixed .Nm usage, other typos
1997-02-12 07:09:07 +00:00
mrg 954a0f16a0 getopt returns -1 not EOF. 1997-02-11 09:41:45 +00:00
mrg f9db097104 remove dangerous sprintf and strcpy calls. 1997-02-11 09:29:26 +00:00
mrg a4424f42c3 use strncpy. 1997-02-11 09:25:24 +00:00
mrg 53fddda6b9 give buffers lengths; use strdup. 1997-02-11 09:24:03 +00:00
mrg 5e32125362 remove dangerous sprintf call; use strdup 1997-02-11 09:20:15 +00:00
mrg e5baf973cc avoid not knowing the length of internal buffers. 1997-02-11 08:43:23 +00:00
mrg 23768a9e9a remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:42:03 +00:00
mrg b9de9dbc60 remove dangerous sprintf and strcpy calls. 1997-02-11 08:40:44 +00:00
mrg fc8700736a remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:39:23 +00:00
mrg cc03262905 remove dangerous sprintf and strcpy calls. 1997-02-11 08:26:27 +00:00
mrg a4d8e69073 remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:21:03 +00:00
mrg 2ba96e4833 remove dangerous sprintf calls. 1997-02-11 08:18:32 +00:00
cjs 795a80dde1 64-bit police. 1997-02-11 08:15:19 +00:00
mrg 56d95f62f0 remove dangerous sprintf calls. 1997-02-11 08:15:08 +00:00
mikel 43d35f1fb2 fix typo; from Saitoh Masanobu in PR misc/3199. 1997-02-11 06:01:54 +00:00
veego daad32f0db RCS id police. 1997-02-09 14:33:50 +00:00
veego 57344c4022 Add missing ;
Fix pr #3201.
1997-02-09 14:31:41 +00:00
cgd af10d1eaff handle quoted strings in quoted strings properly, when using multicharacter
quotes.  E.g. if left quote was "``" and right quote was "''", then
"``foo ``bar'' baz''" would yield "foo `bar' baz" when it should yield
"foo ``bar'' baz".
1997-02-08 23:54:49 +00:00
cgd 8b1ea567b0 Simplify some push-back code (e.g. for left and right quotes) so that
it uses pbstr() instead of doing the characters individually (in
    reverse order) with putback().
Fix dodiv() so that divert(<out-of-range stream>) doesn't cause "divnum" to
    return 0, but rather the stream number specified to divert().  Macros
    like PUSHDIVERT/POPDIVERT rely on this.  The new behaviour is compatible
    with vendor m4 implementations.
1997-02-08 23:50:40 +00:00
cgd 2c5dcba13b i don't know why this was still here, but it does not belong. It appears
to have been in Lite2, but with a Net/2 SCCS id.  It's unnecessary (it's
not used), so it's going away.
1997-02-08 23:42:48 +00:00
mikel 7eb775bf99 fix typo; from Saitoh Masanobu in PR misc/3195. 1997-02-07 03:27:22 +00:00
christos 8a0d2c8cb0 Fix PR1882+PR3171, swap display core-dumps from Paul Boven. 1997-02-02 19:20:55 +00:00
lukem 4c7551e4f0 don't display negative ETA upon SIGINFO because filesize isn't known 1997-02-01 11:26:34 +00:00
lukem 3a50014d60 [Yet Another Huge Ftp Commit - hopefully the last for a while,
barring any more little things people want added ...]

New features:
* progressmeter is now asynchronous, so "stalled" transfers can be
  detected. "- stalled -" is displayed instead of the ETA in this case.
  When the xfer resumes, the time that the xfer was stalled for is
  factored out of the ETA. It is debatable whether this is better than
  not factoring it out, but I like it this way (I.e, if it stalls for 8
  seconds and the ETA was 30 seconds, when it resumes the ETA will still
  be 30 seconds).
* verbosity can be disabled on the command line (-V), so that in auto-fetch
  mode the only lines displayed will be a description of the file, and
  the progress bar (if possible)
* if the screen is resized (and detected via the SIGWINCH signal), the
  progress bar will rescale automatically.

Bugs fixed:
* progress bar will not use the last character on the line, as this can
  cause problems on some terminals
* screen dimensions (via ioctl(TIOCWINSZ)) should use stdout not stdin
* progressmeter() used some vars before initialising them
* ^D will quit now. [fixes bin/3162]
* use hstrerror() to generate error message for host name lookup failure.
* use getcwd instead of getwd (it should have been OK, but why tempt fate?)
* auto-fetch transfers will always return a positive exit value upon failure
  or interruption, relative to the file's position in argv[].
* remote completion of / will work, without putting a leading "///".
  This is actually a bug in ftpd(1), where "NLST /" prefixes all names
  with "//", but fixing every ftpd(1) is not an option...
1997-02-01 10:44:54 +00:00
matthias cd80e9aae6 remove second RCS-Id line. 1997-02-01 09:51:48 +00:00
ghudson b440233d15 Document the recent change in group wheel semantics. Also, it wasn't
previously documented that anyone could su to root if group 0 didn't
exist.
1997-01-31 23:12:17 +00:00
ghudson 1b6b85b894 As discussed on tech-userlevel, allow anyone to su if group wheel has
no members (if you have just "root" as a member, which is the shipped
default, then no one can su, as before).
1997-01-31 22:22:47 +00:00
matthias 192303707a let the flat profile ignore symbols specified with -E. 1997-01-30 09:20:55 +00:00
matthias ec450f3940 finding whiteouts didn't work. 1997-01-30 09:17:27 +00:00