summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-05-08 13:40:26 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-05-08 13:40:26 +0300
commitc5696f60193c31d98f1e313145b3611de3d34906 (patch)
tree131d5a41146d04647871165883e944d03d37e0dc
parent8ecf69ed6236c308f183125301fa571c4e21491f (diff)
downloadrpm-c5696f60193c31d98f1e313145b3611de3d34906.tar.gz
rpm-c5696f60193c31d98f1e313145b3611de3d34906.tar.bz2
rpm-c5696f60193c31d98f1e313145b3611de3d34906.zip
Oops, matchpathcon() wants st_mode, not the entire struct stat
-rw-r--r--rpmdb/rpmdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index 2bff34eb4..72d86adee 100644
--- 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);
}