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 145922 Details for
Bug 223161
Make sure wireless-tools work with ipw3945 (64bit problems in -28)
[?]
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]
Backport 64-bit sscanf argument fixes from wireless-tools-29-pre8 to wireless-tools-28
wireless-tools-28-sscanf-64bit-fixes.patch (text/plain), 2.30 KB, created by
Dan Williams
on 2007-01-18 15:03:53 UTC
(
hide
)
Description:
Backport 64-bit sscanf argument fixes from wireless-tools-29-pre8 to wireless-tools-28
Filename:
MIME Type:
Creator:
Dan Williams
Created:
2007-01-18 15:03:53 UTC
Size:
2.30 KB
patch
obsolete
>--- wireless_tools.28/iwconfig.c.sscanf-64-bit-fixes 2007-01-18 09:42:33.000000000 -0500 >+++ wireless_tools.28/iwconfig.c 2007-01-18 10:00:27.000000000 -0500 >@@ -674,11 +674,16 @@ > wrq.u.nwid.disabled = 0; > } > else >- if(sscanf(args[i], "%lX", (unsigned long *) &(wrq.u.nwid.value)) >- != 1) >- ABORT_ARG_TYPE("Set NWID", SIOCSIWNWID, args[i]); >- else >- wrq.u.nwid.disabled = 0; >+ { >+ unsigned long temp; >+ if(sscanf(args[i], "%lX", &(temp)) != 1) >+ ABORT_ARG_TYPE("Set NWID", SIOCSIWNWID, args[i]); >+ else >+ { >+ wrq.u.nwid.value = temp; >+ wrq.u.nwid.disabled = 0; >+ } >+ } > wrq.u.nwid.fixed = 1; > > /* Set new nwid */ >@@ -746,11 +751,13 @@ > /* ---------- Set sensitivity ---------- */ > if(!strncmp(args[i], "sens", 4)) > { >+ int temp; > if(++i >= count) > ABORT_ARG_NUM("Set Sensitivity", SIOCSIWSENS); >- if(sscanf(args[i], "%i", &(wrq.u.sens.value)) != 1) >+ if(sscanf(args[i], "%i", &(temp)) != 1) > ABORT_ARG_TYPE("Set Sensitivity", SIOCSIWSENS, args[i]); > >+ wrq.u.sens.value = temp; > IW_SET_EXT_ERR(skfd, ifname, SIOCSIWSENS, &wrq, > "Set Sensitivity"); > continue; >@@ -1063,10 +1070,14 @@ > "Set RTS Threshold"); > wrq.u.rts.fixed = 1; > } >- else /* Should be a numeric value */ >- if(sscanf(args[i], "%li", (unsigned long *) &(wrq.u.rts.value)) >- != 1) >- ABORT_ARG_TYPE("Set RTS Threshold", SIOCSIWRTS, args[i]); >+ else >+ { /* Should be a numeric value */ >+ long temp; >+ if(sscanf(args[i], "%li", (unsigned long *) &(temp)) != 1) >+ ABORT_ARG_TYPE("Set RTS Threshold", SIOCSIWRTS, args[i]); >+ >+ wrq.u.rts.value = temp; >+ } > } > > IW_SET_EXT_ERR(skfd, ifname, SIOCSIWRTS, &wrq, >@@ -1097,12 +1108,14 @@ > "Set Fragmentation Threshold"); > wrq.u.frag.fixed = 1; > } >- else /* Should be a numeric value */ >- if(sscanf(args[i], "%li", >- (unsigned long *) &(wrq.u.frag.value)) >- != 1) >- ABORT_ARG_TYPE("Set Fragmentation Threshold", SIOCSIWFRAG, >+ else >+ { /* Should be a numeric value */ >+ long temp; >+ if(sscanf(args[i], "%li", &(temp)) != 1) >+ ABORT_ARG_TYPE("Set Fragmentation Threshold", SIOCSIWFRAG, > args[i]); >+ wrq.u.frag.value = temp; >+ } > } > > IW_SET_EXT_ERR(skfd, ifname, SIOCSIWFRAG, &wrq,
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 223161
: 145922 |
145923