The Samba-Bugzilla – Attachment 902 Details for
Bug 2264
On FreeBSD getopt() requires initialisation of optreset variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Set optreset variable in the rpcclient
patch-rpcclient_cmd_reg.c (text/plain), 363 bytes, created by
Timur Bakeyev
on 2005-01-19 21:19:52 UTC
(
hide
)
Description:
Set optreset variable in the rpcclient
Filename:
MIME Type:
Creator:
Timur Bakeyev
Created:
2005-01-19 21:19:52 UTC
Size:
363 bytes
patch
obsolete
>--- 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) > {
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
Actions:
View
Attachments on
bug 2264
:
901
| 902