* mkgroup.c (usage): Use one just fprintf + string concatenation for output
message. (print_version): Add void to function type and update copyright.
This commit is contained in:
parent
22a9157c7c
commit
7a9f3efb1b
@ -1,3 +1,9 @@
|
|||||||
|
2002-03-19 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* mkgroup.c (usage): Use one just fprintf + string concatenation for
|
||||||
|
output message.
|
||||||
|
(print_version): Add void to function type and update copyright.
|
||||||
|
|
||||||
2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
|
2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
|
||||||
|
|
||||||
* mkgroup.c (usage): Simplify usage output. Generalize to allow use
|
* mkgroup.c (usage): Simplify usage output. Generalize to allow use
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* mkgroup.c:
|
/* mkgroup.c:
|
||||||
|
|
||||||
Copyright 1997, 1998, 2002 Cygnus Solutions.
|
Copyright 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -406,21 +406,21 @@ print_special (int print_sids,
|
|||||||
int
|
int
|
||||||
usage (FILE * stream, int status)
|
usage (FILE * stream, int status)
|
||||||
{
|
{
|
||||||
fprintf (stream, "Usage: mkgroup [OPTION]... [domain]\n\n");
|
fprintf (stream, "Usage: mkgroup [OPTION]... [domain]\n\n"
|
||||||
fprintf (stream, "This program prints a /etc/group file to stdout\n\n");
|
"This program prints a /etc/group file to stdout\n\n"
|
||||||
fprintf (stream, "Options:\n");
|
"Options:\n"
|
||||||
fprintf (stream, " -l,--local print local group information\n");
|
" -l,--local print local group information\n"
|
||||||
fprintf (stream, " -d,--domain print global group information from the domain\n");
|
" -d,--domain print global group information from the domain\n"
|
||||||
fprintf (stream, " specified (or from the current domain if there is\n");
|
" specified (or from the current domain if there is\n"
|
||||||
fprintf (stream, " no domain specified)\n");
|
" no domain specified)\n"
|
||||||
fprintf (stream, " -o,--id-offset offset change the default offset (10000) added to uids\n");
|
" -o,--id-offset offset change the default offset (10000) added to uids\n"
|
||||||
fprintf (stream, " in domain accounts.\n");
|
" in domain accounts.\n"
|
||||||
fprintf (stream, " -s,--no-sids don't print SIDs in pwd field\n");
|
" -s,--no-sids don't print SIDs in pwd field\n"
|
||||||
fprintf (stream, " (this affects ntsec)\n");
|
" (this affects ntsec)\n"
|
||||||
fprintf (stream, " -u,--users print user list in gr_mem field\n");
|
" -u,--users print user list in gr_mem field\n"
|
||||||
fprintf (stream, " -h,--help print this message\n\n");
|
" -h,--help print this message\n\n"
|
||||||
fprintf (stream, " -v,--version print version information and exit\n\n");
|
" -v,--version print version information and exit\n\n"
|
||||||
fprintf (stream, "One of `-l' or `-d' must be given on NT/W2K.\n");
|
"One of `-l' or `-d' must be given on NT/W2K.\n");
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -437,6 +437,7 @@ struct option longopts[] = {
|
|||||||
|
|
||||||
char opts[] = "ldo:suhv";
|
char opts[] = "ldo:suhv";
|
||||||
|
|
||||||
|
void
|
||||||
print_version ()
|
print_version ()
|
||||||
{
|
{
|
||||||
const char *v = strchr (version, ':');
|
const char *v = strchr (version, ':');
|
||||||
@ -454,7 +455,7 @@ print_version ()
|
|||||||
printf ("\
|
printf ("\
|
||||||
mkgroup (cygwin) %.*s\n\
|
mkgroup (cygwin) %.*s\n\
|
||||||
group File Generator\n\
|
group File Generator\n\
|
||||||
Copyright 1997, 1998, 2002 Red Hat, Inc.\n\
|
Copyright 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.\n\
|
||||||
Compiled on %s", len, v, __DATE__);
|
Compiled on %s", len, v, __DATE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* passwd.c: Changing passwords and managing account information
|
/* passwd.c: Changing passwords and managing account information
|
||||||
|
|
||||||
Copyright 1999 Cygnus Solutions.
|
Copyright 1999, 2000, 2001, 2002 Red Hat, Inc.
|
||||||
|
|
||||||
Written by Corinna Vinschen <corinna.vinschen@cityweb.de>
|
Written by Corinna Vinschen <corinna.vinschen@cityweb.de>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user