RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: [EMAIL PROTECTED]
Module: rpm Date: 06-Oct-2008 21:48:45
Branch: rpm-5_1 Handle: 2008100619484500
Modified files: (Branch: rpm-5_1)
rpm/lib fsm.c
Log:
inline the stat buffer to get rid of compile-time warnings under
non-Linux platforms where matchpathcon expands to an empty macro
(similar to what we already have on HEAD)
Summary:
Revision Changes Path
2.169.2.3 +1 -2 rpm/lib/fsm.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/lib/fsm.c
============================================================================
$ cvs diff -u -r2.169.2.2 -r2.169.2.3 fsm.c
--- rpm/lib/fsm.c 6 Oct 2008 19:11:37 -0000 2.169.2.2
+++ rpm/lib/fsm.c 6 Oct 2008 19:48:45 -0000 2.169.2.3
@@ -753,9 +753,8 @@
{
fsm->fcontext = NULL;
if (!fsm->nofcontexts) {
- struct stat * st = &fsm->sb;
security_context_t scon = NULL;
- int xx = matchpathcon(fsm->path, st->st_mode, &scon);
+ int xx = matchpathcon(fsm->path, fsm->sb.st_mode, &scon);
/[EMAIL PROTECTED]@*/
if (!xx && scon != NULL)
@@ .
______________________________________________________________________
RPM Package Manager http://rpm5.org
CVS Sources Repository [email protected]