Bug 124260 - dev-util/cvs: gnulib's openat.c file has bad code when accessing mode_t vararg
Bug#: 124260 Product:  Gentoo/Alt Version: unspecified Platform: All
OS/Version: FreeBSD Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cvs-utils@gentoo.org Reported By: flameeyes@gentoo.org
Component: Other
URL: 
Summary: dev-util/cvs: gnulib's openat.c file has bad code when accessing mode_t vararg
Keywords:  
Status Whiteboard: 
Opened: 2006-02-27 06:32 0000
Description:   Opened: 2006-02-27 06:32 0000
cvs is using an old version of gnulib's openat.c unit which contains an
openat() replacement. Unfortunately that version of openat.c contains bad code
when trying to access mode_t through vararg; it does only produce a warning,
but if the execution reach that code, the program aborts (as told by the
warning itself).
The attached patch replaces the bad code with the updated one in recent
openat.c unit files (the unit is way different but this patch should be
enough). Current CVS version of cvs already has openat.c updated from gnulib.

Thanks,
Diego

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-02-27 06:33:21 0000 -------
Created an attachment (id=80835) [details]
cvs-1.12.12-mode_t.patch

------- Comment #2 From Lars Weiler (RETIRED) 2006-03-01 08:03:20 0000 -------
Fixed in cvs-1.12.12-r3.