summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-06 09:27:43 +0100
committerJeremy Allison <jra@samba.org>2012-11-08 21:24:21 +0100
commit50d47fc0816c842717a5c0bfb3c0863d99eed78c (patch)
tree12fe0c01829a870b3df5c09bdc80f2cb6542f9a8 /source3/utils
parentc51abb35dfff86cb503d36a844184f7a95f29cdb (diff)
downloadsamba-50d47fc0816c842717a5c0bfb3c0863d99eed78c.tar.gz
samba-50d47fc0816c842717a5c0bfb3c0863d99eed78c.tar.bz2
samba-50d47fc0816c842717a5c0bfb3c0863d99eed78c.zip
s3fs-client: Burn commandline password of client utils.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Nov 8 21:24:21 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net.c2
-rw-r--r--source3/utils/smbcacls.c2
-rw-r--r--source3/utils/smbcquotas.c2
-rw-r--r--source3/utils/smbtree.c1
4 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 85fe2f6454..465d2a0821 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -945,6 +945,8 @@ static struct functable net_func[] = {
c->opt_password = getenv("PASSWD");
}
+ popt_burn_cmdline_password(argc, argv);
+
/* Failing to init the msg_ctx isn't a fatal error. Only
root-level things (joining/leaving domains etc.) will be denied. */
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 7df4e48725..d22e2f3bac 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -1371,6 +1371,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
popt_common_set_auth_info(auth_info);
pc = poptGetContext("smbcacls", argc, argv, long_options, 0);
+ popt_burn_cmdline_password(argc, argv);
poptSetOtherOptionHelp(pc, "//server1/share1 filename\nACLs look like: "
"'ACL:user:[ALLOWED|DENIED]/flags/permissions'");
@@ -1436,6 +1437,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
}
poptFreeContext(pc);
+ popt_burn_cmdline_password(argc, argv);
string_replace(path,'/','\\');
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index b96210386d..d248bbe1eb 100644
--- a/source3/utils/smbcquotas.c
+++ b/source3/utils/smbcquotas.c
@@ -608,6 +608,7 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
popt_common_set_auth_info(smbcquotas_auth_info);
pc = poptGetContext("smbcquotas", argc, argv, long_options, 0);
+ popt_burn_cmdline_password(argc, argv);
poptSetOtherOptionHelp(pc, "//server1/share1");
@@ -689,6 +690,7 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
}
poptFreeContext(pc);
+ popt_burn_cmdline_password(argc, argv);
string_replace(path, '/', '\\');
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c
index e2f109e9eb..40b1f096ad 100644
--- a/source3/utils/smbtree.c
+++ b/source3/utils/smbtree.c
@@ -317,6 +317,7 @@ static bool print_tree(struct user_auth_info *user_info)
POPT_CONTEXT_KEEP_FIRST);
while(poptGetNextOpt(pc) != -1);
poptFreeContext(pc);
+ popt_burn_cmdline_password(argc, argv);
lp_load_global(get_dyn_CONFIGFILE());
load_interfaces();