Commit Graph

1903 Commits

Author SHA1 Message Date
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
mikel 00702536b8 eliminate absent directories from .PATH; PR bin/3154 1997-01-30 07:29:11 +00:00