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 156685 Details for
Bug 243651
kudzu fails to cope with quoted parameters in ifcfg files
[?]
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 to handle quoted parameters
kudzu-1.1.95.22-quoted.patch (text/plain), 1019 bytes, created by
Martin Poole
on 2007-06-11 09:07:49 UTC
(
hide
)
Description:
patch to handle quoted parameters
Filename:
MIME Type:
Creator:
Martin Poole
Created:
2007-06-11 09:07:49 UTC
Size:
1019 bytes
patch
obsolete
>--- kudzu-1.1.95.22/kudzu.c.quoted 2006-10-18 21:00:07.000000000 +0100 >+++ kudzu-1.1.95.22/kudzu.c 2007-06-08 16:06:52.000000000 +0100 >@@ -999,6 +999,19 @@ > return 0; > } > >+static inline char *dequote(char *start, char *end) { >+ if (end==NULL) { >+ end=start; >+ while(*end) end++; >+ } >+ if (end > start) end--; >+ if ((*start == '\'' || *start == '\"') && ( *start == *end ) ) { >+ *end='\0'; >+ if (start<end) start++; >+ } >+ return start; >+} >+ > static void matchNetDevices(struct device *devlist) { > struct device *dev; > char **modules = NULL; >@@ -1038,16 +1051,16 @@ > tmp++; > } > if (!strncmp(buf,"DEVICE=",7)) { >- devname=buf+7; >+ devname=dequote(buf+7,tmp); > if (cf) { >- mod = getAlias(cf,buf+7); >+ mod = getAlias(cf,devname); > if (mod && !loadModule(mod)) { > nmodules = addToList(&modules, mod, nmodules); > } > } > } > if (!strncmp(buf,"HWADDR=",7)) >- hwaddr=buf+7; >+ hwaddr=dequote(buf+7,tmp); > buf = tmp; > } > if (!devname || (!hwaddr && !mod)) {
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 243651
: 156685