Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
cfengine
cfengine-2.2.8-strict-aliasing-fix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cfengine-2.2.8-strict-aliasing-fix.diff of Package cfengine
--- src/link.c +++ src/link.c @@ -393,6 +393,10 @@ { struct stat buf,savebuf; char to[CF_BUFSIZE],linkbuf[CF_BUFSIZE],saved[CF_BUFSIZE],absto[CF_BUFSIZE],*lastnode; struct UidList fakeuid; + union { + struct UidList *uifakeuid; + struct GidList *gifakeuid; + } ufakeuid = { &fakeuid }; struct Image ip; char stamp[CF_BUFSIZE]; time_t STAMPNOW; @@ -436,7 +440,7 @@ ip.plus = CF_SAMEMODE; ip.minus = CF_SAMEMODE; ip.uid = &fakeuid; - ip.gid = (struct GidList *) &fakeuid; + ip.gid = ufakeuid.gifakeuid; ip.action = "do"; ip.recurse = 0; ip.type = 't'; @@ -869,6 +873,10 @@ { struct stat frombuf,tobuf; char saved[CF_BUFSIZE], *lastnode; struct UidList fakeuid; + union { + struct UidList *uifakeuid; + struct GidList *gifakeuid; + } ufakeuid = { &fakeuid }; struct Image ip; char stamp[CF_BUFSIZE]; time_t STAMPNOW; @@ -899,7 +907,7 @@ ip.plus = CF_SAMEMODE; ip.minus = CF_SAMEMODE; ip.uid = &fakeuid; - ip.gid = (struct GidList *) &fakeuid; + ip.gid = ufakeuid.gifakeuid; ip.action = "do"; ip.recurse = 0; ip.type = 't';
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor