summaryrefslogtreecommitdiff
path: root/net/samba3/files/patch-rpcclient_cmd_reg.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-07-03 12:46:41 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-07-03 12:46:41 +0000
commitd281f6efd9cd4d33ba800e7b1e57ebb9226548ea (patch)
treeea007d28d8a536cbb9cbcf4f1ac89bbfb376dd74 /net/samba3/files/patch-rpcclient_cmd_reg.c
parentUpgrading to 1.3.0. (diff)
Here I attach the patch that fixes mentioned 3 problems as well as few others:
* BUG 1315 - wbinfo -t unsuccessful on 3.0.4 * BUG 1319 - Cannot write to a share with write-list users * BUG 1345 - Macromedia Homesite cannot connect anymore after upgrade to 3.0.4 * Patch from Rudolf Cejka <cejkar@fit.vutbr.cz> - rpcclient does not recognize parameters in -c <command> correctly. * Patch from Joerg Pulz <Joerg.Pulz@frm2.tum.de> - fixes to samba.sh startup script. PR: ports/67865 Submitted by: edwin@mavetju.org,Rudolf Cejka <cejkar@fit.vutbr.cz>,Joerg Pulz <Joerg.Pulz@frm2.tum.de> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=112848
Diffstat (limited to 'net/samba3/files/patch-rpcclient_cmd_reg.c')
-rw-r--r--net/samba3/files/patch-rpcclient_cmd_reg.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/samba3/files/patch-rpcclient_cmd_reg.c b/net/samba3/files/patch-rpcclient_cmd_reg.c
new file mode 100644
index 000000000000..dc8a5726b678
--- /dev/null
+++ b/net/samba3/files/patch-rpcclient_cmd_reg.c
@@ -0,0 +1,15 @@
+--- rpcclient/cmd_reg.c.orig Sun Apr 4 09:37:28 2004
++++ rpcclient/cmd_reg.c Thu May 20 14:18:36 2004
+@@ -905,7 +905,11 @@
+ int opt;
+
+ *msg = 0;
+- optind = 0; /* TODO: test if this hack works on other systems too --simo */
++#ifdef HAVE_OPTRESET
++ optreset = optind = 1;
++#else
++ optind = 0;
++#endif
+
+ while ((opt = getopt(argc, argv, "m:t:rf")) != EOF)
+ {