The Samba-Bugzilla – Attachment 5446 Details for
Bug 7203
net share doesn't work anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 3-5-test
0001-s3-net_share.c-fix-argc-handling.patch (text/plain), 948 bytes, created by
Holger Hetterich
on 2010-03-03 06:21:24 UTC
(
hide
)
Description:
patch for 3-5-test
Filename:
MIME Type:
Creator:
Holger Hetterich
Created:
2010-03-03 06:21:24 UTC
Size:
948 bytes
patch
obsolete
>From 0097fa7d8712967d5024431d567a048c49d4944c Mon Sep 17 00:00:00 2001 >From: Holger Hetterich <hhetter@novell.com> >Date: Wed, 3 Mar 2010 12:58:15 +0100 >Subject: [PATCH] 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. >--- > source3/utils/net_share.c | 4 +--- > 1 files changed, 1 insertions(+), 3 deletions(-) > >diff --git a/source3/utils/net_share.c b/source3/utils/net_share.c >index db06b7d..1b06067 100644 >--- a/source3/utils/net_share.c >+++ b/source3/utils/net_share.c >@@ -62,10 +62,8 @@ 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) { >+ if (argc > 0 && StrCaseCmp(argv[0], "HELP") == 0) { > net_share_usage(c, argc, argv); > return 0; > } >-- >1.6.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
jmcd
:
review+
Actions:
View
Attachments on
bug 7203
: 5446