Powered by Apache

CVS log for nsh/passwd.c

[BACK] Up to [local] / nsh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 4 02:49:46 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.6 (colored)

Destroy inappropriate use of CMP_ARG and rename it to MIN_ARG since is
is really only for comparing that an argument matches a minimum of the
characters supplied to the second position in the macro.

Next move from using half-assed minimum-matching/ambiguous proof to
being truly table driven by using genget everywhere.  This is done by
eliminating chains of if (CMP_ARG){...; return;} and using structs
which genget loops around to determine the shortest non-ambiguous
prefix.  This doesn't buy command completion yet!  But, by using
table driven command sets, it moves in the right direction.

Also replace use of CMP_ARG in places that are not table-driven to
isprefix() (it was already in genget.c) which does matching in the
opposite order, so nsh can know that an argument is "interface"
and match i, in, int, inte, ... but not match iff or other mis-spelled
arguments.  (CMP_ARG was just matching against the minimum non-
ambiguous part of the argument as compiled into nsh at any given
time, poor form)

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 27 03:12:22 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.5 (colored)

type cleanup from cc -W

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 22 06:28:19 2004 UTC (8 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.4 (colored)

put enable below hostname in conf() output and a few other minor cleanups

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 22 03:56:29 2004 UTC (8 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.3 (colored)

Move enable() into passwd.c, where cyc's new code makes more sense
(Anyways, commands.c is already bloated enough)

Unfortunately, this makes int priv a global..I tried to move priv,
bridge, editing, and verbose into a struct that gets passed around
appropriately, but I found that is just going to be damn hard with the current
(mis)design (including libedit's need for a prompt function, a function which
also needs to know about priv and bridge...) So, a little more thought
is necessary, but this is a nice extra cleanup for the moment.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 19 08:07:19 2004 UTC (8 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.2 (colored)

Although there's no actual bug in read_pass(), simply logic in the same way

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 19 08:03:50 2004 UTC (8 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.1 (colored)

Simplify logic in write_pass() so that we do not try and fclose() when
a file handle was not obtained.  Also, make fopen write-only because reading
is unnecessary.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 17 08:09:13 2004 UTC (8 years, 2 months ago) by cyc
Branch: MAIN

added enable secret.
writes password to /var/run/nshpasswd, like pf.conf and others.
lot of help and ok from chris@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>