summaryrefslogtreecommitdiffstats
path: root/source/utils/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/utils/net.c')
-rw-r--r--source/utils/net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/utils/net.c b/source/utils/net.c
index 89eb9211ca1..81968e6f847 100644
--- a/source/utils/net.c
+++ b/source/utils/net.c
@@ -61,6 +61,7 @@ char *opt_requester_name = NULL;
char *opt_host = NULL;
char *opt_password = NULL;
char *opt_user_name = NULL;
+BOOL opt_user_specified = False;
char *opt_workgroup = NULL;
int opt_long_list_entries = 0;
int opt_reboot = 0;
@@ -394,6 +395,7 @@ static struct functable net_func[] = {
opt_have_ip = True;
break;
case 'U':
+ opt_user_specified = True;
opt_user_name = strdup(opt_user_name);
p = strchr(opt_user_name,'%');
if (p) {