s3fs-client: Burn commandline password of client utils.
authorAndreas Schneider <asn@samba.org>
Tue, 6 Nov 2012 08:27:43 +0000 (09:27 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 8 Nov 2012 20:24:21 +0000 (21:24 +0100)
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

source3/client/client.c
source3/rpcclient/rpcclient.c
source3/utils/net.c
source3/utils/smbcacls.c
source3/utils/smbcquotas.c
source3/utils/smbtree.c

index ab0e77f50a5cdd9a53aa80892d5803791f5f461c..f8cc27d63a60944777487a75e0f4b5a0282b5b2c 100644 (file)
@@ -5408,6 +5408,7 @@ static int do_message_op(struct user_auth_info *a_info)
                                                       poptGetArg(pc));
                }
 
+
                switch (opt) {
                case 'M':
                        /* Messages are sent to NetBIOS name type 0x3
@@ -5555,6 +5556,7 @@ static int do_message_op(struct user_auth_info *a_info)
        }
 
        poptFreeContext(pc);
+       popt_burn_cmdline_password(argc, argv);
 
        DEBUG(3,("Client started (version %s).\n", samba_version_string()));
 
index 0dad971c9688d7772d226b0f30dd0f0bfc5e4d7b..d204d7fae2dea849fad99648f228275527515685 100644 (file)
@@ -960,6 +960,7 @@ out_free:
        }
 
        poptFreeContext(pc);
+       popt_burn_cmdline_password(argc, argv);
 
        if (!init_names()) {
                result = 1;
index 85fe2f6454a7365635e14273bb9f09900489f787..465d2a08216ae1cb6b03d383307ec63b905ba199 100644 (file)
@@ -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. */
 
index 7df4e4872580d2a4834b0e2deeb361c998c40efb..d22e2f3bac08562064011421c483c2bab6d41f83 100644 (file)
@@ -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,'/','\\');
 
index b96210386da9dae5edc3617ee329f3934a297898..d248bbe1ebf4b8ec410854053934ca926360e3e4 100644 (file)
@@ -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, '/', '\\');
 
index e2f109e9eb2a6cf13f3bcd1247326e4a52024619..40b1f096ad995defca273a285b70e2986533717a 100644 (file)
@@ -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();