summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-15 09:20:36 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-15 09:20:36 +0000
commit04b22713d0ef29c136ec95f8d6cb642bc28f47f1 (patch)
treea2df71e8bf1d30e42b528fa698e563a30df39936 /source3
parent56e3c83af1893fffcf2c54141167e91a864b4b88 (diff)
downloadsamba-04b22713d0ef29c136ec95f8d6cb642bc28f47f1.tar.gz
samba-04b22713d0ef29c136ec95f8d6cb642bc28f47f1.tar.xz
samba-04b22713d0ef29c136ec95f8d6cb642bc28f47f1.zip
added a -h usage option to winbindd
(This used to be commit d6a4a10f58accd6ad158ba60eb1508f00c9a4dd3)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 9058fa4174..a2313d6f73 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -647,6 +647,17 @@ static void process_loop(int accept_sock)
struct winbindd_state server_state; /* Server state information */
+
+static void usage(void)
+{
+ printf("Usage: winbindd [options]\n");
+ printf("\t-i interactive mode\n");
+ printf("\t-n disable cacheing\n");
+ printf("\t-d level set debug level\n");
+ printf("\t-s configfile choose smb.conf location\n");
+ printf("\t-h show this help message\n");
+}
+
int main(int argc, char **argv)
{
extern BOOL AllowDebugChange;
@@ -684,7 +695,7 @@ int main(int argc, char **argv)
/* Initialise samba/rpc client stuff */
- while ((opt = getopt(argc, argv, "id:s:n")) != EOF) {
+ while ((opt = getopt(argc, argv, "id:s:nh")) != EOF) {
switch (opt) {
/* Don't become a daemon */
@@ -708,6 +719,10 @@ int main(int argc, char **argv)
pstrcpy(dyn_CONFIGFILE,optarg);
break;
+ case 'h':
+ usage();
+ exit(0);
+
default:
printf("Unknown option %c\n", (char)opt);
exit(1);