char **p, **uvec[5];
int i, linelen, linemax, ulen;
static char *uvec1[] = {
- " -K | -L | -V | -h | -k | -v",
+ " -h | -K | -k | -L | -V | -v",
NULL
};
static char *uvec2[] = {
- " [-U username] [-u username|#uid] -l [command]",
+ " -l [-U username] [-u username|#uid] [command]",
NULL
};
static char *uvec3[] = {
" [-p prompt]",
" [-u username|#uid]",
" [VAR=value]",
- " { -e file [...] | -i | -s | <command> }",
+ " {-i | -s | <command>}",
NULL
};
static char *uvec4[] = {
+ " -e",
" [-S]",
#ifdef HAVE_BSD_AUTH_H
" [-a auth_type]",
#endif
" [-p prompt]",
" [-u username|#uid]",
- " file [...]",
+ " file ...",
NULL
};
* Use usage vectors appropriate to the progname.
*/
if (strcmp(getprogname(), "sudoedit") == 0) {
- uvec[0] = uvec4;
+ uvec[0] = uvec4 + 1;
uvec[1] = NULL;
} else {
uvec[0] = uvec1;
=head1 SYNOPSIS
-B<sudo> B<-K> | B<-k> | B<-h> | B<-L> | B<-V> | B<-v>
+B<sudo> B<-h> | B<-K> | B<-k> | B<-L> | B<-V> | B<-v>
B<sudo> B<-l> S<[B<-U> I<username>]> S<[B<-u> I<username>|I<#uid>]> [I<command>]
B<sudo> [B<-bEHPS>] S<[B<-a> I<auth_type>]> S<[B<-C> I<fd>]>
S<[B<-c> I<class>|I<->]> S<[B<-p> I<prompt>]> S<[B<-u> I<username>|I<#uid>]>
-S<[B<VAR>=I<value>]> S<{B<-e> file [...] | B<-i> | B<-s> | I<command>}>
+S<[B<VAR>=I<value>]> S<{B<-i> | B<-s> | I<command>}>
-B<sudoedit> S<[B<-a> I<auth_type>]> S<[B<-c> I<class>|I<->]>
-S<[B<-p> I<prompt>]> [B<-S>] S<[B<-u> I<username>|I<#uid>]>
-file [...]
+B<sudoedit> [B<-S>] S<[B<-a> I<auth_type>]> S<[B<-C> I<fd>]>
+S<[B<-c> I<class>|I<->]> S<[B<-p> I<prompt>]> S<[B<-u> I<username>|I<#uid>]>
+file ...
=head1 DESCRIPTION
=over 8
-=item C<%u>
+=item C<%H>
-expanded to the invoking user's login name
+expanded to the local hostname including the domain name
+(on if the machine's hostname is fully qualified or the I<fqdn>
+I<sudoers> option is set)
+
+=item C<%h>
+
+expanded to the local hostname without the domain name
=item C<%U>
expanded to the login name of the user the command will
be run as (defaults to root)
-=item C<%h>
-
-expanded to the local hostname without the domain name
-
-=item C<%H>
+=item C<%u>
-expanded to the local hostname including the domain name
-(on if the machine's hostname is fully qualified or the I<fqdn>
-I<sudoers> option is set)
+expanded to the invoking user's login name
=item C<%%>
=head1 SEE ALSO
-L<grep(1)>, L<su(1)>, L<stat(2)>, L<login_cap(3)>, L<sudoers(@mansectform@)>,
-L<passwd(@mansectform@)>, L<visudo(@mansectsu@)>
+L<grep(1)>, L<su(1)>, L<stat(2)>, L<login_cap(3)>, L<passwd(@mansectform@)>,
+L<sudoers(@mansectform@)>, L<visudo(@mansectsu@)>
=head1 AUTHORS