The branch, master has been updated
       via  e3c2e1a... s3: net_share.c: fix argc handling
      from  f36dafd... s4-smbtorture: fix WINBIND-STRUCT assumptions about 
getpwent() for s3.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e3c2e1a30375c393f0ee0d50e814e7c7482c5182
Author: Holger Hetterich <[email protected]>
Date:   Tue Mar 2 23:17:20 2010 +0100

    s3: net_share.c: fix argc handling
    
    The "net share" command was no longer possible because it enters
    the net_share function with argc == 0.

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/net_share.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_share.c b/source3/utils/net_share.c
index db06b7d..156b27b 100644
--- a/source3/utils/net_share.c
+++ b/source3/utils/net_share.c
@@ -62,12 +62,9 @@ int net_share_usage(struct net_context *c, int argc, const 
char **argv)
 
 int net_share(struct net_context *c, int argc, const char **argv)
 {
-       if (argc < 1)
-               return net_share_usage(c, argc, argv);
-
-       if (StrCaseCmp(argv[0], "HELP") == 0) {
-               net_share_usage(c, argc, argv);
-               return 0;
+       if (argc > 0 && StrCaseCmp(argv[0], "HELP") == 0) {
+                       net_share_usage(c, argc, argv);
+                       return 0;
        }
 
        if (net_rpc_check(c, 0))


-- 
Samba Shared Repository

Reply via email to