From ed789e19911956192121509bc3655dfe17167e4f Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Wed, 10 Jun 2009 13:45:56 +0200 Subject: [PATCH] net: Prompt for password if -U is given but no password is specified. --- source3/utils/net.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/source3/utils/net.c b/source3/utils/net.c index d58858c..d5e10f7 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -707,6 +707,9 @@ static struct functable net_func[] = { if (p) { *p = 0; c->opt_password = p+1; + } else { + c->opt_password = net_prompt_pass(c, + c->opt_user_name); } break; default: -- 1.5.4.3