Commit Graph

8067 Commits

Author SHA1 Message Date
christos
68adb09d42 - avoid calling pam_end twice if pam failed in fatal
- make fatal proper macros
- fix typos in comments
- fix logical error initializing pam
XXX: Seems to work now, but the whole process is awkward.
Asking for an ssh passphrase and using this to do unix authentication is wrong.
Falling back to the old style auth is awkward. We should really provide a
pam_rootauth module if we want to support that.
2005-01-08 08:45:53 +00:00
kim
61f9450361 Make -w flag apply to the WHAT field also (command and args).
Use at most half of ttywidth for WHERE field (hostname) instead
of a hardcoded maximum width.  (XXX: this is still not a good
default for displays under 80 columns.  Should probably count
the width of all the other columns, using 8 for the WHAT field.)
2005-01-08 05:08:53 +00:00
kim
2bb4a74034 Line up "days" style output in the IDLE field. 2005-01-08 05:04:34 +00:00
kim
ee64b0d712 The w command does not display a CPU time, so don't talk about it. 2005-01-08 04:58:08 +00:00
yamt
075d5146c6 correct examples. 2005-01-08 03:46:05 +00:00
ginsbach
02d2680603 getuid() returns a uid_t not int, so make uid uid_t. 2005-01-08 03:23:15 +00:00
manu
e628e84aaa Add PAM support to su 2005-01-07 22:34:20 +00:00
lukem
9683394bbb fix copyright year 2005-01-04 23:59:11 +00:00
fredb
6eda52d041 Invoke "join" using POSIX syntax. Should fix a problem cross-building from
Linux reported to tech-toolchain by Jesse Off.
2005-01-04 18:09:33 +00:00
lukem
b918fc0803 Forbid filenames returned from mget that aren't in (or below) the
current directory.
The previous behaviour (of trusting the remote server's response when
retrieving the list of files to mget with prompting disabled) has been
in ftp ~forever, and has been a "known issue" for a long time.
Recently an advisory was published by D.J. Bernstein on behalf of
Yosef Klein warning of the problems with the previous behaviour, so
to alleviate concern I've fixed this with a sledgehammer.

Remember the local cwd after any operation which may change it.
Use "remotecwd" instead of "remotepwd".
2005-01-03 09:50:09 +00:00
lukem
4d41fe6044 Style/consistency cleanup:
* libcrypto & libz are provided by ../Makefile.inc
* <bsd.own.mk> isn't required by most of these
* be consistent in the layout
2005-01-03 06:05:50 +00:00
lukem
ecfeee924b Use the public libssh that's now available. 2005-01-03 06:04:08 +00:00
wiz
59461d12f9 Add RCS Id, bump date for when it appeared in NetBSD, mention
NetBSD appearance in HISTORY section, fmt a paragraph.
2005-01-02 18:41:23 +00:00
christos
5f325e6da0 Shift assignment operators were handled incorrectly. On 64 bit machines,
unsigned long x, y;
	x <<= y;
always produces a warning because y is casted to int. Handle them instead
the same way as regular shifts.
2005-01-02 17:59:47 +00:00
thorpej
7ec7b5b2f6 Add a getextattr(1)/setextattr(1)/rmextattr(1)/lsextattr(1) utility
that gets, sets, removes, and lists file system extended attributes.

From FreeBSD.
2005-01-02 17:55:48 +00:00
christos
2f2c6dc261 say from what type to what time we are converting. 2005-01-02 10:40:49 +00:00
yamt
712038f82a sync with kernel. (vm_map_entry::flags) 2005-01-01 21:17:47 +00:00
atatat
fa01c2e835 Add "dirname"- and "basename"-like functionality to stat(1) by way of
the "high" and "low" selectors on the filename.
2004-12-31 03:24:31 +00:00
christos
f3ff62b84d Add comments in the pmake style, and factor out a local variable.
No functional change.
2004-12-29 01:55:25 +00:00
christos
8415275dbd Dir_MTime did not search for a file using the correct parh; i.e. it was
ignoring suffix-specific path search. So if a node was marked .MADE,
then suffix rules would not be applied to it, and we would look for
the file only in the default path, not the suffix-specific path.

XXX: Now that we looked for the suffix, we can save it in the GNode,
but we don't do this yet.
2004-12-29 00:43:02 +00:00
atatat
4b9429a08d Attack of the whiteout police, including the "fix whitespace problems"
department followed by the "and fix the the ifdefs as well" brigade,
leading to a janitorial "just combine those two" strike team.
2004-12-28 05:11:07 +00:00
wiz
3c75d39ba0 New sentence, new line. Add a comma. 2004-12-23 01:55:30 +00:00
christos
25c67c975f Fix usage, and call setprogname()! 2004-12-22 17:20:30 +00:00
christos
5df4136a03 PR/28751: Ed Ravin: Limit host field output by default to 35 characters so
that things don't wrap. Add -w flag to enable full output. Delete mention
of the old and not supported flags. This was 11 years ago, and very few
people even remember what these flags did.
2004-12-22 17:16:07 +00:00
lha
c2e518e56e Only include Kerberos 4 headers when compiling in a Kerberos enviroment
From Jukka Salmi in NetBSD PR misc/28727
2004-12-22 01:28:56 +00:00
lha
a0dab7aa39 Move linking with libdes to the common kerberos section since
libtelnet depends on the old des functions.

From Jukka Salmi in NetBSD pr misc/28727
2004-12-22 01:25:05 +00:00
yamt
8676c37c10 scmp: don't discard const qualifiers needlessly. 2004-12-21 11:33:07 +00:00
ginsbach
e736e1e0c5 Dead code clean up:
* The function speed(), imported from 4.4BSD-Lite2, has never been
  used by NetBSD.  Obtained from FreeBSD.
* Finish removing -L (litout) option.  This has not been supported
  since rev. 1.5 (NetBSD 1.0).  The option still appeared in the
  usage and man page.  Obtained from FreeBSD.
* In function doit(), dead code imported from 4.4BSD-Lite2, dealing
  with termios.  NetBSD cracked this nut differently long before this
  import.  Obtained from FreeBSD.
2004-12-21 02:39:00 +00:00
dsainty
555352630f Correct typo in an error message: allocatior -> allocator 2004-12-20 08:20:50 +00:00
atatat
63fae01c7d Slurp in the struct mount at vp->v_mount and the struct specinfo at
vp->v_specinfo to get the proper st_dev and st_rdev numbers.  We're
already picking over the kernel, so let's do it right.  That means
also asserting the file type for the /dev/pts directory (S_IFDIR) and
nodes therein (S_IFCHR).

Remove getptsmajor(), since we no longer need it.  Besides, it was
being used wrongly.
2004-12-14 03:10:23 +00:00
atatat
a92869d7ef Cast fst.fileid to unsigned long and print it as such. Inode numbers
are never negative.
2004-12-14 03:09:24 +00:00
christos
09c258b188 Add ptyfs. 2004-12-12 22:41:03 +00:00
aymeric
8d1f13638c . wait only for 10 ms instead of 100 ms before updating the screen
. fix a variable reuse bug

It has been broken since the conversion from select() to poll().
2004-12-10 16:27:29 +00:00
lukem
a76c6e6173 * Always decode %xx in a url's user & pass components.
* Only remember {WWW,Proxy}-Authenticate "Basic" challenges; no point
  in tracking any others since ftp doesn't support them.
* Improve the parsing of HTTP responses.
2004-12-10 06:44:15 +00:00
mycroft
33131ab95f Fix an array overrun in option parsing.
Fixes PR 26732, PR 26775, PR 28416 and PR 28589.
2004-12-09 18:06:10 +00:00
wiz
b7ceeca8dd New sentence, new line. Bump date for **. 2004-12-08 15:44:21 +00:00
jmc
40c0737463 Fixed for PR#28581. If stdin is the input stream, fstat it and check if it's
file. If so, use it's mtime for the mtime in the header. Otherwise use
time(2)'s result instead. Lines up with GNU gzip and RFC 1952 now as well.
2004-12-08 06:38:40 +00:00
jwise
8e40de5fcb Since we fall back to /etc/calendar now (if present), put that path properly
in pathnames.h.
2004-12-07 16:47:32 +00:00
jwise
4f1d9bdb73 Play with calendar syntax a little, allowing both of month and day
to be wildcarded.

As a side effect, this allows '**' in the date field to match every
day of the year, which is very useful for TODO items.

It's important to note that the syntax has a lot of hardcoded (and
undocumented) ambiguity resolution stuff, and is crying out for a
simplification, and maybe some use of yacc and lex.

When this is done, a minor flag day (and probably a compatibility
flag :-( ) should be included, for current users who are making
use of some of the corner cases.  I'll raise this on tech-userlevel
before going there.  CVS:
----------------------------------------------------------------------
2004-12-06 20:38:43 +00:00
snj
d4d8a90495 Remove a duplicate entry. 2004-12-06 06:33:03 +00:00
lukem
e3fa45c35e add some HISTORY about the inspiration for this command 2004-12-03 23:05:32 +00:00
ginsbach
b275490943 Remove stray ; in comment. 2004-12-02 21:46:52 +00:00
wiz
5dfef2f2bd Fix typo. 2004-12-01 12:03:55 +00:00
wiz
2f78a9f782 Fix typo reported by Jeff Ito in PR 28496. 2004-12-01 12:02:08 +00:00
wiz
7b04d43e4c Document -x, from Jeff Ito in PR 28494.
While here, sort options and fix various minor stuff.
2004-12-01 12:01:05 +00:00
perry
e45cb21451 Mike Cheponis noted that I didn't list the edition of Knuth that the
page number refers to. Fixed.
2004-12-01 00:03:45 +00:00
wiz
c6dfed6dc5 Sort options in SYNOPSIS, bump date for -x, and misc. cleanup. 2004-11-30 10:41:20 +00:00
wiz
53693aebe6 Add -x to usage and to getopt options string (hi Jim!). 2004-11-30 10:39:53 +00:00
christos
67a132acdc PR/28474: Geoff C. Wing: write does some weird checking and can't handle ptyfs 2004-11-30 04:08:38 +00:00
jwise
69de851d35 Now that cpp(1) understands the CPP_RESTRICTED environment variable, set
that before invoking cpp -- and provide (with appropriate man page warnings)
an option to run cpp without this set.
2004-11-30 01:54:17 +00:00
wiz
68f709428b Bump date for new calendar searching behaviour; new sentence, new line. 2004-11-29 20:22:31 +00:00
jwise
fe72e40594 Note switch to searching home directory, and add a note to the COMPATIBILITY
section describing how to get the historical behavior.
2004-11-29 18:33:45 +00:00
jwise
e7f10875fa On further thought, always search for calendar files in the caller's home
directory when called directly (this was already done for calendar -a, by
definition).

Old behavior is still available by setting "CALENDAR_DIR=.".
2004-11-29 18:25:14 +00:00
jwise
9720571221 Note new behavior for finding calendar files when none specifically given. 2004-11-29 17:58:07 +00:00
jwise
d728174e30 Instead of searching only for a calendar file named `calendar' in the current
directory, use the first found of:

	./calendar
	./.calendar
	/etc/calendar

Note that currently only the first found of these is used (so that users may
override a system calendar placed in /etc if desired).  Users who want can always
use #include to continue the chain...
2004-11-29 17:03:43 +00:00
lukem
77966ade4d WARNS=3 2004-11-29 05:02:52 +00:00
lukem
7fde79333c Improve printing of various items to be more human-readable.
Display all the supported databases in the usage.
2004-11-29 05:02:40 +00:00
lukem
6d8ce32cbf Implement "services" 2004-11-29 04:13:15 +00:00
wiz
bd8c343563 No dot at end of SEE ALSO. 2004-11-26 10:15:37 +00:00
lukem
309eefda19 implement "protocols" 2004-11-26 05:07:12 +00:00
lukem
f6f918f7c3 implement "networks" 2004-11-26 04:52:45 +00:00
ginsbach
1468e327a8 Fix what appears to be a typo in the description. 2004-11-24 16:37:44 +00:00
aymeric
0339e1e087 bump version: coredump fixed when autocompleting a filename wider than screen 2004-11-23 14:36:50 +00:00
aymeric
0b416121a6 Move a line of code which was "obviously" misplaced.
This fixes a core dump when auto-completing filenames and at least one of the
file names is larger than the screen width.

Bug report and fix by Peter Bex in PR#28382
2004-11-23 14:35:45 +00:00
wiz
db85937f2b "..." does not need to be quoted. 2004-11-23 09:06:24 +00:00
lukem
10f5ef24c1 add getent(1) 2004-11-23 07:35:38 +00:00
lukem
6fc4e8553d getent(1) - get entries from administrative database. 2004-11-23 07:35:06 +00:00
simonb
e38c2f36ba Show more information about page types in use, and free pages. 2004-11-23 03:11:33 +00:00
peter
2c12af6a77 Sort options, standardize usage message.
ok wiz@
2004-11-22 17:34:24 +00:00
peter
75e76988cc WARNS=3 clean. 2004-11-22 17:32:08 +00:00
peter
cd2105a43a Add some missing static/const.
ok wiz@
2004-11-22 17:31:38 +00:00
peter
52f947197e ANSIfy & KNF.
ok wiz@
2004-11-22 17:28:58 +00:00
peter
3a0b5da47f Print the correct usage message for whoami(1) and groups(1).
ok wiz@
2004-11-22 17:21:36 +00:00
peter
1a4cb94e52 Sort options.
ok wiz@
2004-11-22 17:20:02 +00:00
grant
0bfb4106b0 no trailing comma at end of enum. 2004-11-20 06:40:01 +00:00
grant
3e28f586c0 +pkgsrc/OSF1 2004-11-20 06:37:15 +00:00
christos
ccd2e5bea8 use sockaddr_snprintf() 2004-11-19 21:41:25 +00:00
wiz
a65671d259 Remove some whitespace. 2004-11-19 18:41:00 +00:00
peter
5dc9788b36 Fix a typo, dependancy -> dependency
ok wiz@
2004-11-19 14:18:53 +00:00
peter
e8ec0dc16f id(1) -p supports optional [user] arg;
from matthew clarke via OpenBSD

ok wiz@
2004-11-19 14:18:01 +00:00
christos
6b2a6f8a02 Be a bit more careful with errors; if you cannot find the pty to stat for
time, then report ? instead of the previous random contents of struct stat.
2004-11-19 13:17:06 +00:00
matt
d0560e80c6 When adding text due to an a, c, or i command, don't eat the space(s) at
the beginning of the lines since the addition is supposed to be "verbatim".
Fix a comment for compile_text indicating it's also used for the 'c' command.
2004-11-17 22:17:54 +00:00
wiz
9f522a4dd3 Merge single-letter options; sync order in man page and usage. 2004-11-17 14:57:48 +00:00
itojun
da88342476 NI_WITHSCOPEID was not picked up by IETF standardization process 2004-11-16 06:04:12 +00:00
itojun
b95181fc9b NI_WITHSCOPEID was not picked up by IETF standardization process. 2004-11-16 05:59:32 +00:00
christos
81726ab7e3 Print the full pty name; reported by atatat 2004-11-16 04:52:46 +00:00
christos
4a9bb0c8f3 Add a -a option to pass the host address of the host we logged in from in
addition to the host name. This option is needed by programs suchs as
telnetd, because at the point they invoke login, they already have opened
a pty, and the stdin of login is no longer the socket connected to the
remote host. In addition don't chop the hostname up to the first dot if
the domain matches. These practices are 70's fashion and they only serve
to lose information. These days we have long enough fields in utmpx and
wtmpx to store the full names.
2004-11-14 18:01:21 +00:00
christos
692346d6f0 PR/28264: Miles Nordin: finger does not consult utmp if a username is specified 2004-11-12 21:48:58 +00:00
wiz
4050e4b376 Add -n to usage. 2004-11-11 01:01:22 +00:00
wiz
c62efc1052 Options without arguments are combined in SYNOPSIS; new sentence, new line. 2004-11-11 01:00:34 +00:00
christos
8583098c75 Add -n flag to print numeric entries. 2004-11-11 00:54:23 +00:00
christos
280dbafe67 PR/28185: Brian Marcotte: w command broken when user specified 2004-11-11 00:09:07 +00:00
christos
51beb09565 Kill remnant function decl. 2004-11-10 20:26:43 +00:00
christos
bdba0e8400 Add V_PTY 2004-11-10 17:54:47 +00:00
christos
c7ead5d42d Don't print just two characters for the tty; change the field width of the
tty to 7.
2004-11-10 16:58:10 +00:00
wiz
0ff196cd8a pathconf(2), not (3). 2004-11-10 13:43:39 +00:00
lukem
8a5e21e9cf Document where the system_var and path_var variable names are determined from. 2004-11-10 04:29:56 +00:00
lukem
246f6fd919 Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for
the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).

These are not implemented in sysctl(3) "user.*", since that adds a lot
of complexity in the implementation for no real benefit.
2004-11-10 04:02:52 +00:00
lukem
d7ef73e561 fix an error message 2004-11-10 00:29:07 +00:00
dsl
1869f0e146 Add (unsigned char) cast to ctype functions 2004-11-05 21:56:01 +00:00
dsl
c68edd41b3 Add (unsigned char) cast to ctype functions
Fixes problems displaying German 'sharp-s', see PR install/27281
2004-11-05 20:45:48 +00:00
dsl
0e378e4772 Add (unsigned char) cast to ctype functions 2004-11-05 19:56:34 +00:00
dsl
48cdfe10a9 Use isalnum((unsigned char)x) instead of testing both isdigit() and isalpha() 2004-11-05 19:54:47 +00:00
dsl
b7cb013096 Add (unsigned char) cast to ctype functions 2004-11-05 19:50:12 +00:00
dsl
df38245cee Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
dsl
7f6459c7a3 Add (unsigned char) cast to ctype functions
Change some variables from register char to int
2004-11-04 07:35:15 +00:00
dsl
293eff3495 Add (unsigned char) cast to ctype functions
islower() can be true for 0x80..0xff
2004-11-04 07:29:09 +00:00
dsl
88d913ebbe Add (unsigned char) cast to ctype functions 2004-11-04 07:22:47 +00:00
dsl
cf09d2b1ce Add (unsigned char) cast to ctype functions
Although, IIRC, there is another PR on all commands being converted to
lower case.
2004-11-04 07:18:47 +00:00
dsl
e219d781d7 Add (unsigned char) cast to ctype functions 2004-11-03 20:10:08 +00:00
dsl
ef795ed430 Add (unsigned char) cast to ctype functions
Although I can't imagine why the 'seed' must be alphanumeric, nor why
it is later converted to lower case!
2004-11-01 21:52:07 +00:00
dsl
d0ad315f4f Add (unsigned char) cast to ctype functions 2004-11-01 21:39:32 +00:00
dsl
447bb30961 Make fn arg 'unsigned char' to avoid passing 'char' to isalnum() 2004-11-01 21:36:11 +00:00
dsl
6632ac4d9c Add (unsigned char) cast to ctype functions 2004-11-01 21:12:59 +00:00
augustss
7efc81ca56 Make stdout line buffered (in case you are logging). 2004-10-31 21:10:59 +00:00
dsainty
5469cb6f9a Make the USB_GET_REPORT error format match the USB_SET_REPORT error format by
including the report the error was on.
2004-10-31 07:36:19 +00:00
dsl
58d3abc94f Add (unsigned char) cast to ctype functions
Stop infinite loop if get lower case char with no upper case equiv.
2004-10-30 21:52:09 +00:00
dsl
e2a58c7a44 Add (unsigned char) cast to ctype functions
A password containg 80...ff could be reported (incorrectly) as being
all lower case.
2004-10-30 21:05:53 +00:00
dsl
dfdc37e2fe Add (unsigned char) cast to ctype functions 2004-10-30 20:56:20 +00:00
dsl
108eb2ab42 Add (unsigned char) cast to ctype functions 2004-10-30 20:39:35 +00:00
dsl
06dd932c49 Add (unsigned char) cast to ctype functions - Char is unsigned char. 2004-10-30 20:37:35 +00:00
dsl
5355c81879 Add (unsigned char) cast to ctype functions 2004-10-30 20:17:19 +00:00
dsl
807394cff5 Add (unsigned char) cast to ctype functions 2004-10-30 19:34:01 +00:00
christos
175795754a WARNS=3, and remove comment about WFORMAT issues. 2004-10-30 19:28:35 +00:00
christos
a7e7123b05 - KNF, WARNS=3, pass lint.
- Simplify octal parsing code.
2004-10-30 19:28:10 +00:00
dsl
b23af931be Add (unsigned char) cast to ctype functions 2004-10-30 17:43:02 +00:00
dsl
c28aa2083f Add (unsigned char) cast to ctype functions
Change a couple of local buffers to 'unsigned char'
2004-10-30 17:37:09 +00:00
dsl
e833833eb1 Add (unsigned char) cast to ctype functions 2004-10-30 17:29:47 +00:00
dsl
eee0442cb4 No need to call isupper() before tolower() 2004-10-30 17:27:28 +00:00
dsl
25b3737cd3 isupper(x) can be true for x in [128..255], but since tolower(x) is required
to return x if it cannot be translated we don't need the isupper() test.
2004-10-30 17:25:34 +00:00
dsl
43371ff1ac Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
dsl
3145a29f62 Add (unsigned char) cast to ctype functions 2004-10-30 17:08:12 +00:00
dsl
f77de37ccc Use strtoul() for integer conversion 2004-10-30 17:02:20 +00:00
dsl
8383dcf78c Add (unsigned char) cast to ctype functions 2004-10-30 16:57:27 +00:00
dsl
ee9ce6e95c Add (unsigned char) cast to ctype functions
Make 'queue' and 'atqueue' unsigned char.
2004-10-30 16:55:06 +00:00
dsl
3cca093e74 Add (unsigned char) cast to ctype functions 2004-10-30 15:51:20 +00:00
dsainty
b95d1a22d4 Correct spelling of hierarchy in a comment, and tab around RCSID 2004-10-30 05:16:13 +00:00
christos
fc23d32c7d Call check_sender with NULL atime, meaning no strict checking. 2004-10-27 17:49:19 +00:00
christos
74c9d10c58 make the atime and msgok optional. If we did not request atime, then we
don't want strict checking and in this case if the tty is not found we
don't exit. write calls this with atime != NULL and wall calls this with
atime == NULL.
2004-10-27 17:48:47 +00:00
christos
4b03e4a99f Allow root to write even if it does not have a tty. 2004-10-26 19:24:00 +00:00
christos
29950aef4a Check the result of stat and warn if things are not found.
Change all err/x to warn/x
2004-10-22 15:50:47 +00:00
peter
7dbbfa5b53 Update a comment to say that the returned size is in KB. 2004-10-22 09:50:54 +00:00
wiz
c76ac2e131 Use Fl for flags, not "Ar -"; add verb to sentence;
grammar fix; remove trailing whitespace.
2004-10-20 23:52:04 +00:00
augustss
d44bf45e4b Update date (phew, got there before wiz! ;) 2004-10-20 13:57:36 +00:00
augustss
689cf598a2 Change logic in patch to allow CONST collections a little. 2004-10-20 13:56:53 +00:00
augustss
9a9d5c1a03 Allow a HID table to be specified (as for usbhidctl). 2004-10-20 13:53:56 +00:00
augustss
7dae9ae8ac Allow a collection to have the CONST flag.
Add some debug.
2004-10-20 13:49:15 +00:00
augustss
4c335c3359 Fix a typo.
Clarify path name for the config file.
2004-10-20 13:47:21 +00:00
augustss
17f791c30f Clarify and modernize a little. 2004-10-19 13:51:57 +00:00
augustss
ac26803d62 Update with an additional (useful) example. 2004-10-19 13:39:51 +00:00
dsl
ca03792fbe Remove _erase_ch() it isn't used any more 2004-10-16 12:49:14 +00:00
christos
e4ff3093af remove unused variable 2004-10-16 07:36:08 +00:00
christos
d9d5b79249 - Fix bug in port parsing code; s_port must be in network byte order.
- Factor out port parsing code and add error checking to it.
- WARNS=3
2004-10-16 02:03:54 +00:00
enami
226c6eda62 Make vmstat -s prints:
- uvmexp.pdre{anon,file,exec}.
- real number of namecache stats.
2004-10-15 21:29:03 +00:00
snj
c225c39401 Bump date for last and slightly improve wording. 2004-10-13 23:46:42 +00:00
gavan
0560d8b947 Initial import of iyonix port.
The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.

* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.

With help from abs.
2004-10-13 23:28:34 +00:00
sjg
5961096f14 Apply patch from PR 26779
and update man page (not quite per PR 26780).
2004-10-12 16:46:59 +00:00
he
0e68544091 Move declaration of local variables to start of function instead of
inside a block after code.  Fixes build problem for vax, which still
uses gcc 2.95.3.
2004-10-10 22:15:34 +00:00
mrg
6f0ae3f96d don't syslog() or errx() a \n. 2004-10-10 01:16:17 +00:00
wiz
bf2f90e799 mkfifo is creating fifos, not directories. Noted by Andrew Doran. 2004-10-08 22:32:35 +00:00
dsl
2c25900b60 Don't abort decompression if there are no bytes in the output buffer
when the end of compressed block (ie the crc) is reached.
(ie when decompressing concatenated zipped files).
Fixes PR bin/27153
2004-10-08 12:46:24 +00:00
wiz
8041597c55 Drop trailing whitespace. 2004-10-07 08:51:08 +00:00
dan
232ea9516c pre-empt wizd (bump date for previous.) 2004-10-07 07:47:31 +00:00
dan
54f2ee2a02 Note potentially surprising file-saving behaviour in case of HTTP redirects 2004-10-07 07:44:17 +00:00
lha
f911795b30 Switch to krb5_set_password that can handle the RFC3244 (and the older
change password protocol)
2004-10-05 14:12:56 +00:00
lukem
21271b283d When vis encoding with -S, only remove the trailing NUL if -N isn't used and
the item's size is > 0.
2004-10-04 10:56:12 +00:00
erh
c6f93ec983 Make the extended options work on little endian machines.
Allow files smaller than 512 bytes to be received w/o a timeout.
2004-10-02 05:05:35 +00:00
jmmv
564aa25e97 Drop extra space before a dot. 2004-09-26 21:19:47 +00:00
wiz
ab90f76ed3 Sync usage with man page (sort, add -O). 2004-09-25 21:48:15 +00:00
wiz
7a57b6bd09 Sort options in SYNOPSIS and in description; use more mdoc macros. 2004-09-25 21:47:53 +00:00
dsl
6e443a613f Change the way crunchgen works when doing 'reachover' builds.
Instead of trying to identify all the .o files that make each target rely
on the targets own Makefile having a program.ro target that will compile
all the objects and link them into a single relocatable.
Rename each program's 'main' to '_crunched_<prog>_stub' instead of compiling
a small piece of C.
The old behaviour can be forced by specifying -O, and is also done if the
config file specifies 'objs' or 'objpaths'.
As well as simplifying the logic, this means you only get a single 'prog.ro
is up to date' message for each program during the build.
2004-09-25 20:43:47 +00:00
dsl
eb23ef8ce9 Use a single awk command (instead of awk and a lot of greps) to generate
the list of symbols to be renamed.
Rename symbols to <symbol>$$from%%<prog> (not _$$hide$$<prog>.cro$$<symbol>)
so that gdb reports the symbol name instead of  "_" (the $$ is treated as a
C++ name mangle and nothing after it is output by default).
2004-09-25 20:21:57 +00:00
dsl
8e4e69acab Whitespace police:
if, for and while are not functions,
put controlled statements of if and while onto separate lines
put function names into column 1
2004-09-25 19:21:07 +00:00
dsl
ef0ef24324 Remove the always defined RENAME_SYMS and the code that would be
compiled were it defined.
That code is out of date, doesn't work on some archs, and is in the way
of another commit.
2004-09-25 18:32:37 +00:00
wrstuden
699e5d41fb In procese_menu, make sure we initializie the menus
_before_ we access the MENUS macro. Otherwise we get a segfault.
2004-09-17 18:27:28 +00:00
wrstuden
e22217703e Catch up with current menuc. 2004-09-17 18:16:44 +00:00
wrstuden
af7a153178 Scoot a menu so it fits better in an xterm. 2004-09-17 18:16:31 +00:00
wrstuden
3f87739bc4 Add parenthesis to silence a compiler warning. 2004-09-17 18:15:01 +00:00
hubertf
2fa09966de Change copyright to 2-clause BSD-copyright.
Changed with explicit permission of Thorsten Lockert (tholo sigmasoft com)
2004-09-15 19:45:17 +00:00
wiz
bf626dd212 Sync usage with man page. 2004-09-13 23:44:19 +00:00
wiz
f70e00b3b6 -s, not -c; add arguments to options; sort options in SYNOPSIS; indent flag descriptions. 2004-09-13 23:44:04 +00:00
thorpej
1209149ad2 Add the uuidgen(1) command, adapted from FreeBSD. While here, also add
a DCE-compatible -s flag, which causes uuidgen(1) to output C code for
the UUIDs rather than the standard string representation.

PR 23470.
2004-09-13 23:35:19 +00:00
yamt
2e1baea952 recognize _Bool. 2004-09-12 08:58:52 +00:00
dsl
abc7a82e52 Count the output file size modulo 2^32 so that the check against the size
in the compressed file works for files greater than 4GB.
Fixes the fixable part of bin/26907
2004-09-11 11:07:44 +00:00
itojun
1ce764ab35 use arc4random 2004-09-10 05:34:54 +00:00
jrf
190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
enami
94265c64d4 Fix default format so that not to print NULL (e.g., ldd mozilla-bin). 2004-09-07 02:54:40 +00:00
martin
ee9d1625eb Make it compile on ports where u_quad_t is not printf-format-compatible
with unsigned long long.
2004-09-06 14:51:32 +00:00
dsl
754b92f9b9 The last commit slightly increased the size of gzip - I had thought that
all the install media used the 'SMALL' variant, but this is not the case.
Redo the percentage print code to reduce the size to less than the old version.
Fix another fd leakage (didn't call fclose() if ferror() returned non-zero.
Change some maybe_warn() to maybe_warnx() in places I'm sure errno is undefined.
Call mayber_warn() earlier in other paths so that errno might still be valid.
Make the SMALL and NO_BZIP/COMPRESS_SUPPORT options all compile with WARNS=3.
2004-09-05 21:32:30 +00:00
wiz
89fb08a9ec Bump date for removal of Kerberos option descriptions.
Remove dots at end of SEE ALSO.
2004-09-05 08:48:32 +00:00
manu
bd3e12fe2f Kerberos support is broken in rcommands, thus making -K -k and -x options
unavailable. Remove theses options from the man pages (it won't be very
hard to bring them back if we fix kerberos one day)
2004-09-05 08:38:23 +00:00
manu
753bcaf581 IPv4 PIM support, from the submission of Pavlin Radoslavov on tech-net@ 2004-09-04 23:35:43 +00:00
dsl
434117bcce Set the XFL field of the gzip header to indicate maximum compression or
fast compression.  Fixes PR bin/26812
Add references the the 3 relevant RFCs
2004-09-04 10:48:57 +00:00
sketch
6f068797e2 Fix obvious grammar mistake. Most of this file could do with a rewrite. 2004-09-03 14:24:50 +00:00
wiz
d05a042013 Sort options. Use more mdoc macros. Some nit fixes. Bump date. 2004-09-01 23:26:10 +00:00
yamt
1575138bfb document default format. 2004-09-01 22:18:20 +00:00
chs
dc8f6bbd12 pass data to a function via arguments instead of via global variables.
this avoids a name collision with libcurses functions when both are
present in a crunched static binary.  part of PR 26458.
2004-09-01 01:46:28 +00:00
he
d6cee1d93b Cast field width computed from pointer diff and ssize_t to int.
Fixes build for amd64 and presumably for our other lp64 ports.
2004-08-31 10:14:30 +00:00
dsl
d55b8a2190 Redo suffix handling so that gunzip xxx.tgx => xxx.tar
Rework logic of gz_{un}compress to make it much less likely to leak fds
    (at least 2 non-error paths leaked them!)
Make -S ".xyz" and -S "" both do something sensible.
Make in-situ compression work - only lose the file on error.
Pass an open fd to zopen (renamed zdopen) to avoid fd leakage (was badly borked)
Write header into first 64k output block to writes are aligned.
    (more efficient and might avoid some problem with code that doesn't
    like receiving partial buffers)
Check file size on compression - double checks against fs full.
Remove some pointless casts, and otherwise simplify some logic.
2004-08-30 14:36:51 +00:00
yamt
d25d8e4dbe in "summary" output (-w),
- print setattr instead of readlink as the former is more freqently used.
- add "Others" column to print the total number of other rpcs.
2004-08-26 13:29:05 +00:00
wiz
0c3e116cc5 From OpenBSD:
revision 1.7
date: 2004/04/08 15:18:28;  author: millert;  state: Exp;  lines: +5 -7
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@

Ok'd by mrg.
2004-08-26 01:29:20 +00:00
wiz
3a8954928b New sentence, new line; punctuation fixes;
sort options in SYNOPSIS.
2004-08-25 12:47:57 +00:00
wiz
4e8c80f100 Drop trailing whitespace. 2004-08-25 12:44:38 +00:00
wiz
cfb72c3de3 Adapt to /usr/share/misc/style.
Sync usage with man page.
Use getprogname()/setprogname().
2004-08-24 12:25:26 +00:00
wiz
71ad289a40 One object-file argument is mandatory, noted by jmc@openbsd.
New sentence, new line. Use more mdoc macros.
2004-08-24 12:11:44 +00:00
dsl
5ac85b92f3 Ensure a non-zero 'word_size' is passed to hexdump_buf for unknown
trace types.
Also fix an incorrect use of the global word_size variable
2004-08-23 20:49:28 +00:00
wiz
83e5dd40b4 Sync usage with man page. 2004-08-23 00:42:32 +00:00
wiz
a908bd6f92 The conffile argument is not optional; also, move it behind all
the options. Bump date.
2004-08-23 00:42:12 +00:00
christos
5eb3a1ebce Add -v VARSPEC, so that we can pass variable assignments to make(1) 2004-08-19 22:24:04 +00:00
christos
4a49cd4b02 Align usage with other vendor unices:
old -f -> -F
    old -t -> -T
    add -j
    add -f <datafile>
    add -m <msgfile>
    add -t <interval>, as an alias to -r and recognize <num>{w,d,h,m,s}
    add -s <sender>
    document -I as an alias to -i
Also, interpret $SUBJECT in the message.
Correct documentation.
2004-08-19 13:43:54 +00:00
christos
2ec264ee7d WARNS=3 2004-08-19 13:37:07 +00:00
dsl
c4d2d498a2 Call doupdate() before copying out of stdscr (avoids PR 26660)
Delete a diagnostic variable.
2004-08-14 15:51:08 +00:00
dsl
43a4fc0e11 NetBSD curses gives the wrong data when you read curscr, need to
add a doupdate() so we save from the correct screen image.
2004-08-14 15:15:57 +00:00
cube
224d89c7db Remove debug printf (hi mycroft!). 2004-08-14 12:53:35 +00:00
dsl
13a7bd52d8 Save and restore screen underneath prompt boxes 2004-08-13 18:26:52 +00:00
lukem
d2c6dcc183 Don't base64 encode the trailing NUL in the HTTP basic auth response.
Problem noted by Eric Haszlakiewicz.
2004-08-08 13:52:04 +00:00
mycroft
de443fd960 Patch from PR 15181 to try using TCP first, fixing problems with long
responses.
2004-08-06 16:10:54 +00:00
mycroft
0428b497d9 Patch from Olaf Siebert in PR 12688 to handle hard links correctly when
renaming.
2004-08-06 15:50:02 +00:00
mycroft
ee776b9f85 Parse multiple options that are specified together; e.g. "-fs".
XXX It is not clear to me why patch(1) doesn't get getopt_long(3).
2004-08-06 14:54:26 +00:00
ginsbach
2841b77712 Append only '@host' to notify email addresses when the destination
host is of the format 'login@host'.  Fixes PR 14412; reviewed by
<christos>.
2004-08-04 02:05:28 +00:00
yamt
496bd8a26d recognize C99 array initializer designators. PR/18896. 2004-08-03 12:11:54 +00:00
wiz
27ef0f1c37 Sort sections; avoid to mark up punctuation unnecessarily; use \*[Lt]\*[Gt]
instead of <>; use Sq.
2004-08-02 22:27:36 +00:00
dsl
f5b2286ba1 Support menu windows that preserve the underlying screen contents.
(Needs a libcurses fix as well).
No need to ponce about with __m_endwin (to remember we've done endwin()),
   the old recovery was wrong in any case - but I've left something that
   will do an explicit redraw.
Allow the 'help' text to be from a variable (and hence translated).
Fix the display of help so that the screen underneath is actually cleared.
Preserve the screen contents while displaying help - redraw is too hard.
Use endwin(); doupdate(); to do the full refresh when ^L is typed.
Move menus up the screen if they would hit the bottom with too few lines
   to show an item and the scroll text (happens with big titles).
Make 'y=0' center the window vertically - use of 0 means you can't have
   a menu starting on the topline, but this is unlikely to be a problem.
Make all the menu options settable from the control file, not just from
   dynamic menus.
Redo menu option list part of man page.
2004-08-02 21:29:07 +00:00
wiz
520ec39eba Some improvements from jmc@openbsd. 2004-07-26 16:05:33 +00:00
wiz
4cea33dc9f Sort options in usage. From Kouichirou Hiratsuka in PR 26388. 2004-07-23 13:45:59 +00:00
wiz
8d2e6d57b9 Document -v. From Kouichirou Hiratsuka in PR 26388. 2004-07-23 13:45:31 +00:00
wiz
ea9a32c94e Sync usage with man page; use getprogname(). From Kouichirou Hiratsuka
in PR 26387.
2004-07-23 13:44:17 +00:00
wiz
73045ab3f6 Add -E to usage; use getprogname(). From Kouichirou Hiratsuka in PR 26281. 2004-07-23 13:35:22 +00:00
wiz
ce7465482b Sort options. From Kouichirou Hiratsuka in PR 26281. 2004-07-23 13:35:02 +00:00
wiz
3ce5fd4931 Sync usage with man page; use getprogname().
From Kouichirou Hiratsuka in PR 26280.
2004-07-23 13:33:22 +00:00
wiz
fce3c402ee Sort options in usage and SYNOPSIS, and adapt usage to man page.
From Kouichirou Hiratsuka in PR 26279.
2004-07-23 13:31:50 +00:00
wiz
9c97cd1d5a Uppercase CPU. 2004-07-23 13:29:17 +00:00
wiz
d33e19fa7e Drop trailing whitespace. 2004-07-23 13:28:55 +00:00
wiz
1919d4e949 Sync usage with man page. From Kouichirou Hiratsuka in PR 26278. 2004-07-23 13:26:11 +00:00
wiz
2389facffb Sort options in SYNOPSIS. From Kouichirou Hiratsuka in PR 26278. 2004-07-23 13:20:36 +00:00
lukem
85e3997a42 Slightly rework SIGINT handling; if we're exiting the auto-fetch stuff
and sigint_raised is non-zero, reset the handler for SIGINT to SIG_DFL
and raise(SIGINT) so that the appropriate wait(3) status is setup.
Based on solution proposed by Ognyan Kulev.
This should really fix PR [pkg/26351].
2004-07-21 00:09:14 +00:00
lukem
635e66e7d8 Improve parsing of HTTP response headers to be more RFC2616 compliant, and
skip LWS (linear white space; CR, LF, space, tab) and the end of lines and
between the field name and the field value.  This still isn't 100% compliant,
since we don't support "multi line" responses at this time.
This should fix PR [bin/22611] from TAMURA Kent (although I can't easily
find a http server to reproduce the problem against.)

Fix a minor memory leak when parsing HTTP response headers.
2004-07-20 12:46:51 +00:00
lukem
64ab1ddb13 Don't unnecessarily display a 401/407 error when running with -V.
Fix from PR [bin/18535] by Jeremy Reed.
2004-07-20 11:22:27 +00:00
lukem
34f004270e Ensure that "mname" is set in ls() and mls() so that an aborted confirm()
prints the correct name.
Problem highlighted & suggested fix from PR [bin/17766] by Steve McClellan.
2004-07-20 11:05:20 +00:00
lukem
1aa9c35970 If an ftp auto-fetch transfer is interrupted by SIGINT (usually ^C),
exit with 130 instead of 1 (or rarely, 0).
This allows an ftp auto-fetch in a shell loop to correctly terminate the loop.
Should fix PR [pkg/26351], and possibly others.
2004-07-20 10:40:21 +00:00
mycroft
26fc0dfe09 Convert 8-bit signed linear data to unsigned for .wav files. 2004-07-19 19:27:59 +00:00
mycroft
680669cd36 Fix fencepost errors in the conversion functions (making them a bit more like
the kernel versions).
2004-07-19 19:15:05 +00:00
dsl
e92cba3e15 Make '0' be a valid number 2004-07-18 10:57:32 +00:00
atatat
14eee8f4cc Rework sys/netipsec/ipsec_netbsd.c to present a more consistent tree.
Rework usr.bin/netstat/fast_ipsec.c to find the stats nodes under the
new names (Kame uses the name stats so we use different ones), as well
as setting slen appropriately between calls to sysctlbyname(), and
providing forward compatibility when actually retrieving stats via
sysctlbyname().

And correct a spelling error.
2004-07-17 16:36:39 +00:00
enami
686e03f5e7 - If fktrace(2) failed, just exit rather than waiting for trace output.
- Reduce #ifdef a bit.
2004-07-16 23:52:01 +00:00
he
7ae4fdd283 Instead of placing largish buffers on the stack, use malloc/free.
Fixes compile problem for sun2.
2004-07-16 22:44:01 +00:00
yamt
fb79fa6390 define __GNUC_PREREQ__ if it isn't available on host. 2004-07-15 09:01:29 +00:00
lukem
f619a0eb00 Fix bug in Christos' recent cleanup which broke the "help" and "rhelp" commands. 2004-07-15 08:50:10 +00:00
wiz
0d19b8b1c0 * add [] to -p
* sort options
* call bad_usage() if unknown option is given

From Kouichirou Hiratsuka in PR 26256.
2004-07-13 12:16:12 +00:00
wiz
d6d7b0598f Sort options; from Kouichirou Hiratsuka in PR 26256. 2004-07-13 12:14:07 +00:00
wiz
b8c5588d79 Usage: Options before arguments; add -E. From Kouichirou Hiratsuka in PR 26255. 2004-07-13 12:11:06 +00:00
wiz
5df46dc9cc Sort options. From Kouichirou Hiratsuka in PR 26255 (slightly changed). 2004-07-13 12:09:29 +00:00
wiz
f4128b317e Add -d to usage; use getprogname(3). From Kouichirou Hiratsuka in PR 26227. 2004-07-13 12:07:51 +00:00
wiz
5e4aaf0ef0 Sync usage with man page (add [login@], sort options, machine -> host);
print usage to stderr; use getprogname(3).
From Kouichirou Hiratsuka in PR 26225.
2004-07-13 12:06:35 +00:00
wiz
6b6cae1acd Sort options in SYNOPSIS. From Kouichirou Hiratsuka in PR 26225. 2004-07-13 12:02:23 +00:00
wiz
1c7022e424 Sync usage with man page. From Kouichirou Hiratsuka in PR 26224. 2004-07-13 12:00:30 +00:00
wiz
13d5df6555 Sync usage with man page; from Kouichirou Hiratsuka in PR 26223. 2004-07-13 11:59:12 +00:00
wiz
d2c6d0c9f5 Sort options in synopsis. 2004-07-13 11:58:55 +00:00
wiz
3408fd1acc Use getprogname(); add -F to usage. From Kouichirou Hiratsuka in PR 26222. 2004-07-13 11:56:24 +00:00
wiz
8ff81120a3 Usage -> usage; add missing -n to usage. From Kouichirou Hiratsuka in PR 26221. 2004-07-13 11:55:02 +00:00
wiz
4e4e99275b Add missing -j to usage; sort as in man page;
use getprogname(). From Kouichirou Hiratsuka in PR 26220.
2004-07-13 11:53:57 +00:00
yamt
5e6cd45b9d fix "gzip -lv a.gz" after gzip.c 1.46. 2004-07-12 10:21:11 +00:00
yamt
284b1b2ac6 another warn -> warnx. 2004-07-12 09:58:10 +00:00
jdolecek
1196c8ba2e consistently quote all values printed in the summary of
the current locale environment ('locale' without arguments)
2004-07-12 08:51:56 +00:00
mrg
2644272f85 in check_outfile() if the outfile exists and -f was given just delete it.
fixes PR#26251.
2004-07-12 02:50:38 +00:00
yamt
bd416872f6 fix descriptor leaks on error. 2004-07-11 22:49:42 +00:00
mrg
668894b1c5 - in gz_uncompress() be sure to do the crc/len recalculation insigned.
fixes PR#26246.
- if crc/len are wrong, be sure to noticed it failed
- in check_suffixes(), be sure not to underrun an array (from yamt)
- don't fail so badly on short header, from and fixes R#26242 (also
  from yamt)
- more underrun avoidance in file_uncompress().  fixes PR#26241.
2004-07-11 14:39:39 +00:00
mrg
d44ac40080 check the suffix of the input file ala GNU gzip, and error about it
unless -f is given.  fixes PR#26240
2004-07-11 09:40:51 +00:00
mrg
e46324f383 move the crc/len code into their own state's to properly allow the buffer
to be refreshed.  re-fixes regress/usr.bin/gzip/concatenated.
2004-07-11 07:01:03 +00:00
mrg
469c821e42 - check for trunated input.
- check each gzip-part's length against the original and warn if it's
  wrong.  fixes part of PR#26233.
- check the input crc32.  fixes the rest of PR#26233.
2004-07-11 06:20:29 +00:00
mrg
7ed5da7ba5 don't assume Z_STREAM_END means end-of-file. fixes PR#26234. 2004-07-11 05:40:51 +00:00
yamt
b6ec63a3cc tailing \n is not needed for vwarn(). 2004-07-10 17:35:59 +00:00
wiz
d771b2e264 Sort options and add -v to usage. From Kouichirou Hiratsuka in PR 26219,
though done slightly differently (options without arguments always come
first).
2004-07-10 16:12:29 +00:00
wiz
a3b80f097f Sort options; new sentence, new line; use Pq. 2004-07-10 16:11:29 +00:00
tron
dc33169c5b Add prefix "${PROG}-" to filename of automatically created list of
ioctl names. This makes sure that each program is built with its own
copy even if object directories are not used. This avoids build
failures when two or more make jobs are used in parallel.
2004-07-10 12:12:49 +00:00
enami
66820706e0 No need to pretty print the errno with err() or warn(). 2004-07-10 00:00:58 +00:00
enami
15f238472a Yet another s/xmalloc/xrealloc/ so that large multi line text
can be added.
2004-07-09 23:43:07 +00:00
mycroft
282d260910 xmalloc()->xrealloc() so that patterns larger than _POSIX2_LINE_MAX*2-1 work. 2004-07-09 16:34:29 +00:00
wiz
bb38c4ebcc Sync usage with man page. From Kouichirou Hiratsuka in PR 26197. 2004-07-09 12:14:37 +00:00
wiz
ec6bd375e2 Add -q to usage. From Kouichirou Hiratsuka in PR 26199. 2004-07-09 12:12:27 +00:00
wiz
bafaf49a90 Add -d level to usage. From Kouichirou Hiratsuka in PR 26198. 2004-07-09 12:10:43 +00:00
wiz
4b3439b23a Add -f to usage. From Kouichirou Hiratsuka in PR 26196. 2004-07-09 11:50:21 +00:00
wiz
5f59441cc8 -p, -s, -t, and -x are mutually exclusive -- make it obvious in
the SYNOPSIS.
2004-07-09 11:47:59 +00:00
wiz
a82c1f4b83 Add missing -n, -1, -2, -4, -5, and -6 to cksum usage.
From Kouichirou Hiratsuka in PR 26195.
2004-07-09 11:44:30 +00:00
wiz
55759098b9 Standardize usage: print it to stderr, add brackets around all optional
arguments, sort, add missing file argument. From Kouichirou Hiratsuka
in PR 26194.
2004-07-09 11:41:26 +00:00
wiz
9e492da4c1 Standardize usage. 2004-07-09 11:40:00 +00:00
wiz
b9c239be76 Add -q to SYNOPSIS. From Kouichirou Hiratsuka in PR 26193. 2004-07-09 11:36:33 +00:00
wiz
7f968efdc2 There is no -m option -- remove it from the usage.
From Kouichirou Hiratsuka in PR 26192.
2004-07-09 11:34:16 +00:00
wiz
625282a3e9 Sync usage with man page. Closes PR 26191 by Kouichirou Hiratsuka. 2004-07-09 11:33:13 +00:00
wiz
ee573c8cac Sort options, bump date. 2004-07-09 11:29:15 +00:00
christos
750fc37531 deal with another dup ioctl; fortunately this is from pcvt and it will die. 2004-07-08 03:22:32 +00:00
tron
d12de89293 Don't scan include files in "includes" target because they might not be
in the destination directory yet.
2004-07-07 14:28:17 +00:00
mycroft
c5817e14e3 Fix a core dump. 2004-07-06 13:19:42 +00:00
mycroft
61290f9727 Fix function calls in the sample server to use the right function name.
From PR 4411.
2004-07-06 07:07:15 +00:00
mycroft
f702e25494 Whoops, make "all" work again. 2004-07-03 19:00:25 +00:00
mycroft
eb8fd502d1 Using timeout() to control refresh gets rid of a whole pile of signal-related
lossage.
Making ungetch() signal-safe, as ncurses seems to, would be better, though.
2004-07-03 18:54:47 +00:00
mycroft
30aaa9067a Use KEY_RESIZE. Might as well have something in our source tree that does. 2004-07-03 18:31:36 +00:00
mrg
13e5b34e5b fix "zcat -f" on normal files. fixes PR#26145 2004-07-03 09:39:30 +00:00
sjg
3a0c68edfd Add support for SHA1 hashed passwords.
The algorithm used is essentially PBKDF1 from RFC 2898 but using
hmac_sha1 rather than SHA1 directly (suggested by smb@research.att.com).

 * The format of the encrypted password is:
 * $<tag>$<iterations>$<salt>$<digest>
 *
 * where:
 *      <tag>           is "sha1"
 *      <iterations>    is an unsigned int identifying how many rounds
 *                      have been applied to <digest>.  The number
 *                      should vary slightly for each password to make
 *                      it harder to generate a dictionary of
 *                      pre-computed hashes.  See crypt_sha1_iterations.
 *      <salt>          up to 64 bytes of random data, 8 bytes is
 *                      currently considered more than enough.
 *      <digest>        the hashed password.

hmac.c implementes HMAC as defined in RFC 2104 and includes a unit
test for both hmac_sha1 and hmac_sha1 using a selection of the Known
Answer Tests from RFC 2202.

It is worth noting that to be FIPS compliant the hmac key (password)
should be 10-20 chars.
2004-07-02 00:05:23 +00:00
drochner
e87f74fd64 put the __packed__ attribute close to the struct definition
(to appease gcc-3.4), and use the compiler-independant __packed
form for consistency
2004-07-01 20:56:34 +00:00