Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 600310 Details for
Bug 633318
semicolon expected in dhclient6.leases
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch fixing the problem.
dhcp-4.2.4-P1-dhclient6-leases_semicolon_expected.patch (text/plain), 1.61 KB, created by
Tomáš Hozza
on 2012-07-25 14:12:17 UTC
(
hide
)
Description:
Patch fixing the problem.
Filename:
MIME Type:
Creator:
Tomáš Hozza
Created:
2012-07-25 14:12:17 UTC
Size:
1.61 KB
patch
obsolete
>diff -up dhcp-4.2.4-P1/client/dhclient.c.dhclient6-leases_semicolon dhcp-4.2.4-P1/client/dhclient.c >--- dhcp-4.2.4-P1/client/dhclient.c.dhclient6-leases_semicolon 2012-07-25 15:20:22.187164614 +0200 >+++ dhcp-4.2.4-P1/client/dhclient.c 2012-07-25 15:20:26.648152028 +0200 >@@ -3236,10 +3236,21 @@ void write_lease_option (struct option_c > } > if (evaluate_option_cache (&ds, packet, lease, client_state, > in_options, cfg_options, scope, oc, MDL)) { >- fprintf(leaseFile, "%soption %s%s%s %s;\n", preamble, >- name, dot, oc->option->name, >- pretty_print_option(oc->option, ds.data, ds.len, >- 1, 1)); >+ /* The option name */ >+ fprintf(leaseFile, "%soption %s%s%s", preamble, >+ name, dot, oc->option->name); >+ >+ /* The option value if there is one */ >+ if ((oc->option->format == NULL) || >+ (oc->option->format[0] != 'Z')) { >+ fprintf(leaseFile, " %s", >+ pretty_print_option(oc->option, ds.data, >+ ds.len, 1, 1)); >+ } >+ >+ /* The closing semi-colon and newline */ >+ fprintf(leaseFile, ";\n"); >+ > data_string_forget (&ds, MDL); > } > } >diff -up dhcp-4.2.4-P1/common/parse.c.dhclient6-leases_semicolon dhcp-4.2.4-P1/common/parse.c >--- dhcp-4.2.4-P1/common/parse.c.dhclient6-leases_semicolon 2012-07-25 15:10:39.683557386 +0200 >+++ dhcp-4.2.4-P1/common/parse.c 2012-07-25 15:16:50.826762985 +0200 >@@ -5772,7 +5772,7 @@ int parse_option_decl (oc, cfile) > goto alloc; > > case 'Z': /* Zero-length option */ >- token = next_token(&val, (unsigned *)0, cfile); >+ token = peek_token(&val, (unsigned *)0, cfile); > if (token != SEMI) { > parse_warn(cfile, > "semicolon expected.");
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 633318
:
446968
| 600310