projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ecf69e
)
Oops, matchpathcon() wants st_mode, not the entire struct stat
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 8 May 2008 10:40:26 +0000
(13:40 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 8 May 2008 10:40:26 +0000
(13:40 +0300)
rpmdb/rpmdb.c
patch
|
blob
|
history
diff --git
a/rpmdb/rpmdb.c
b/rpmdb/rpmdb.c
index
2bff34e
..
72d86ad
100644
(file)
--- a/
rpmdb/rpmdb.c
+++ b/
rpmdb/rpmdb.c
@@
-3302,7
+3302,7
@@
static int rpmdbMoveDatabase(const char * prefix,
if (selinux) {
security_context_t scon = NULL;
- if (matchpathcon(dest,
&st
, &scon) != -1) {
+ if (matchpathcon(dest,
st.st_mode
, &scon) != -1) {
(void) setfilecon(dest, scon);
freecon(scon);
}