Commit Graph

4414 Commits

Author SHA1 Message Date
jdolecek 654400f740 ectx_sanify(): ditch utterly broken 'optimization', which caused incorrect
emulation structures to be used in every even case if default emulation
  and emulation of process differed.

Bug found by Bill Studenmund.
2000-07-20 20:47:02 +00:00
itojun e07dc430ef sync with net/pfkeyv2.h change. do not assume SADB_[EAC]ALG numbers are
continuous.  sync with kame.
2000-07-20 16:23:17 +00:00
ad 6afadc9fb4 Simple const. 2000-07-19 10:52:35 +00:00
enami 069d55ea4c - Free storage allocated by fparseln.
- Handle comment only or empty line in the parser.
2000-07-19 07:22:53 +00:00
ad 677a105692 More work on newsyslog(8):
- Add some comments. It might be getting a little unclear what's going on.
- Make it useful as non-root.

Also, some new features taken from FreeBSD. The last two are not well
tested yet:

- Specifing log files on the command line limits operation to those files.
- Add cyclic time specification for periodic trimming.
- Add restricted ISO-8601 time specification for periodic trimming.
2000-07-18 15:59:24 +00:00
jdolecek 2d6604a645 Do not mmap() with MAP_PRIVATE - looks like kernel tries to preallocate
some memory in case the mmapped contents would be changed and this fails
for very large files; it's unnecessary anyway, cmp(1) does not change file
contents in any way.
This fixes bin/10625 by Uwe Klaus.

While here, change the code to fallback to classic stdio if mmap fails.
2000-07-18 10:23:43 +00:00
lukem b2a6191c15 add rfc 2389, since that's now supported 2000-07-18 07:18:36 +00:00
lukem 7816d2586e add support for FEAT and OPTS commands with `features' and `opts'.
(from RFC 2389).

add support for MLST & MLSD (machine parseble listings) with 'mlst', 'mlsd'
and 'pmlsd' (mlsd |$PAGER) commands.  (from draft-ietf-ftpext-mlst-11)

rename remotesyst() to getremoteinfo(), and modify to parse the result from
FEAT (if supported), and take into account the support for the various
extensions such as MDTM, SIZE, REST (STREAM), MLSD, and FEAT/OPTS.
put each feature into one of the following categories:
	- known to work (explicit FEAT)
	- unknown but assume works until explicit failure, when it's
	  then tagged as `known not to work'.
	- known not to work (FEAT succeeded but didn't return anything,
	  or was unknown and then explicit failure)
assign results into features[] matrix.

add support to getreply() so that an optional callback will be called
for each line received from the server except for the first and last.
this is used in FEAT (and MLST) parsing.

modify various commands to check if REST (STREAM), MDTM and SIZE are
explicitly or implicitly supported before using.

fix `syst' when verbose is off.

minor knf (indent goto labels by one space, etc).

simply various command usage handlers by assuming that argv != NULL except
for quit() and disconnect().
2000-07-18 07:16:52 +00:00
lukem 6f9c683fe4 minor knf. call setbinary()/setascii() with non-NULL 2nd arg 2000-07-18 06:49:21 +00:00
lukem 144c518689 convert to new knf 2000-07-18 06:45:03 +00:00
jdolecek 320186a83a add comma between xrefs in SEE ALSO 2000-07-16 22:05:46 +00:00
mrg b64bf9c5ef update to openssl 0.9.5a 2000-07-16 11:32:07 +00:00
itojun f39d44cbaf repair inet6.ip6 stat (broken in 1.4 -> 1.5). 2000-07-16 03:07:20 +00:00
enami ce5e5c761e - Set the minimum width for login name to 4, the width of "USER".
- Fix the number of colmuns left for proc. args.  Previously, an effect of
  NUL was canceled implicitly, but now we must handle it explicitly.
- Fix the width for tty name.
2000-07-15 22:45:14 +00:00
simonb 34d4c12031 Use KERN_CONSDEV for determining the console device instead of CPU_CONSDEV
which is not available on all ports.
2000-07-13 14:28:07 +00:00
ad 5bf219a1a3 - Use _PATH_VARRUN.
- Address PR 10577 from mjl: recognise '.' as user/group seperator.
2000-07-13 11:28:50 +00:00
itojun 710d2cd983 remove pulldown statistics 2000-07-13 11:07:34 +00:00
assar b4c7f0f535 fix the krb5 su to ordinary user case, from Mark Davies
<mark@MCS.VUW.AC.NZ>
2000-07-13 08:37:10 +00:00
itojun e233a99759 do not print m_pulldown statistics. it is too experimental and
belongs to kame tree only (not for *bsd tree).
2000-07-13 03:53:03 +00:00
simonb fdbafc0681 For the -i option, don't convert a single space before a tab stop to a
tab.  Fixes PR bin/5797 from Todd Vierling.
2000-07-13 02:07:53 +00:00
ad 682d5ce7b8 Xr passwd.conf 2000-07-11 12:12:53 +00:00
ad 82fb41b688 English. 2000-07-11 12:12:18 +00:00
ad 543370583e parse(): be sure to clear *log before filling. 2000-07-11 12:06:32 +00:00
ad ef0846927c - Detail flags in manpage using a table.
- Typo patrol.
- Add new flag, `p': keep zero'th historical log file uncompressed (plain).
  Inspired by woods' newsyslog package.
2000-07-11 11:39:46 +00:00
kleink a1359f90c2 -s: Replace the reference to strcmp(3) with a functional description. 2000-07-11 06:47:21 +00:00
eeh 6697064b0d Make this compile on sparc64. 2000-07-10 22:45:25 +00:00
ad e854f5df38 Sorry about breakage - no connectivity at evenings or weekends for me. Anyway:
- Put back `-n' option. This is a slight improvement on its predecessor.
- More paranoid error checking.
- Fix miscellaneous buglets.
2000-07-10 11:15:07 +00:00
itojun 4806b1729d printf() pedant - even if we are sure that there's no %-formatted in a
varaiable, don't pass variable alone to printf().
From: kris@freebsd.org (FreeBSD-current usr.bin/hexdump/display.c 1.4 -> 1.6)
2000-07-10 10:09:04 +00:00
assar e2ba218ce3 print size_t as casted to (u_long) with %lu 2000-07-10 02:23:04 +00:00
assar 8d33b0b319 add Kerberos5 support 2000-07-10 02:09:15 +00:00
assar 66ba16788d repair, simplify, and improve the Kerberos part 2000-07-10 01:45:24 +00:00
aymeric 51ccad7517 newsyslog wouldn't parse the count field because sscanf return value was
tested against the wrong value (0 != 1)
2000-07-09 12:14:01 +00:00
enami 43bbf1ae3c - Kill the auto variable Pflag like other ch* commands.
- Pass NULL instead of 0 where a pointer is expected.
- Use consistient error message format.
- Use tab for basic indentation.
2000-07-08 03:14:50 +00:00
mjl 9493ab0864 Add some validity checks for seed and password. 2000-07-07 15:45:00 +00:00
ad c9545d3e5d Back out previous two. 2000-07-07 15:42:35 +00:00
mjl dcdbb27d5c Make it deal with skeykeys file containing different hash
algorithms. Also don't grep for each element but make awk do the work
once.
2000-07-07 15:19:09 +00:00
mjl cd5004ad3d Adapt to RFC2289 S/Keys by pulling in changes from OpenBSD. Also
ANSIfied and fixed a bug in hex dump mode.
2000-07-07 15:18:14 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
itojun 82cbc88d2a pull rpc/nettype.h in, for some of function prototype. checked by fvdl 2000-07-07 15:00:57 +00:00
ad 136e84eb05 Redo previous slightly; add `-m' option to allow multiple instances. 2000-07-07 14:09:41 +00:00
mjl 29494f79fb Update manpage to new options. 2000-07-07 13:59:40 +00:00
ad 2f3d5bfcd0 Don't allow more than one instance when running as root. 2000-07-07 13:53:14 +00:00
ad e55de4b4cf Overhaul newsyslog(8). Changes:
- Code cleanup.
- Better flowing English in manpage (in places).
- `-n' option has been removed (was mainly a debugging convenience, I think).
- Add `C' flag: create log file if one doesn't exist.
2000-07-07 10:52:41 +00:00
mjl 5bae709009 Bring s/key closer to RFC2289 conformance by pulling in changes
from OpenBSD to make use of different hash functions possible.
Also ANSIfy, make it use getopt instead of home-grown arg parsing,
and clean up a bit.
2000-07-07 00:18:29 +00:00
jhawk 52e42eac03 Document paragraph-filling behavior of msg_display{,_add}(), and
document function of msg_table_add(). What a whacko api.
2000-07-06 20:10:42 +00:00
jhawk 4ac74dd2e6 Add msg_*() functions to NAME (they are already in SYNOPSIS), and
add MLINKS for them. Perhaps later on they should be broken out into
a section other than 1? At least now they are findable via "man -k" etc.
2000-07-06 19:30:11 +00:00
ad b23b64b8ce Use fmt string with printf, from OpenBSD. 2000-07-06 14:30:08 +00:00
ad d41623ba32 - Use strlcpy(), snprintf().
- Use MAXPATHLEN.
- printf fmt string without %s, from OpenBSD.
2000-07-06 14:21:47 +00:00
ad 5ec7c0582e printf fmt string without %s, from OpenBSD. 2000-07-06 14:12:31 +00:00
ad 240f3596cb Use ':' as group prefix; suggested by hubertf. 2000-07-06 13:09:46 +00:00