Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 80835 Details for
Bug 124260
dev-util/cvs: gnulib's openat.c file has bad code when accessing mode_t vararg
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cvs-1.12.12-mode_t.patch
cvs-1.12.12-mode_t.patch (text/plain), 761 bytes, created by
Diego Elio Pettenò (RETIRED)
on 2006-02-27 06:33:21 UTC
(
hide
)
Description:
cvs-1.12.12-mode_t.patch
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2006-02-27 06:33:21 UTC
Size:
761 bytes
patch
obsolete
>Index: cvs-1.12.12/lib/openat.c >=================================================================== >--- cvs-1.12.12.orig/lib/openat.c >+++ cvs-1.12.12/lib/openat.c >@@ -55,9 +55,13 @@ rpl_openat (int fd, char const *filename > va_list arg; > va_start (arg, flags); > >- /* Assume that mode_t is passed compatibly with mode_t's type >- after argument promotion. */ >- mode = va_arg (arg, mode_t); >+ /* If mode_t is narrower than int, use the promoted type (int), >+ not mode_t. Use sizeof to guess whether mode_t is nerrower; >+ we don't know of any practical counterexamples. */ >+ if (sizeof (mode_t) < sizeof (int)) >+ mode = va_arg (arg, int); >+ else >+ mode = va_arg (arg, mode_t); > > va_end (arg); > }
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 124260
: 80835