FreeBSD Bugzilla – Attachment 42872 Details for
Bug 66746
net/samba: rpcclient does not recognize parameters in -c ...
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 591 bytes, created by
Rudolf Čejka
on 2004-05-17 15:30:25 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Rudolf Čejka
Created:
2004-05-17 15:30:25 UTC
Size:
591 bytes
patch
obsolete
>--- source/rpcclient/cmd_reg.c.orig Thu Nov 27 12:17:08 2003 >+++ source/rpcclient/cmd_reg.c Thu Nov 27 12:19:24 2003 >@@ -900,6 +900,9 @@ > { > extern char *optarg; > extern int optind; >+#if defined(__FreeBSD__) >+ extern int optreset; >+#endif > NTSTATUS result = NT_STATUS_UNSUCCESSFUL; > fstring msg; > uint32 timeout = 20; >@@ -907,7 +910,11 @@ > int opt; > > *msg = 0; >+#if defined(__FreeBSD__) >+ optreset = optind = 1; >+#else > optind = 0; /* TODO: test if this hack works on other systems too --simo */ >+#endif > > while ((opt = getopt(argc, argv, "m:t:rf")) != EOF) > { >--- CUT HERE (END)
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66746
: 42872