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:
e6318cc
)
Apply sanity check to database permissions.
author
jbj
<devnull@localhost>
Tue, 21 Sep 1999 22:41:37 +0000
(22:41 +0000)
committer
jbj
<devnull@localhost>
Tue, 21 Sep 1999 22:41:37 +0000
(22:41 +0000)
CVS patchset: 3313
CVS date: 1999/09/21 22:41:37
lib/rpmdb.c
patch
|
blob
|
history
diff --git
a/lib/rpmdb.c
b/lib/rpmdb.c
index
d0ada68
..
548bb85
100644
(file)
--- a/
lib/rpmdb.c
+++ b/
lib/rpmdb.c
@@
-161,6
+161,9
@@
int openDatabase(const char * prefix, const char * dbpath, rpmdb *rpmdbp, int mo
if (mode & O_WRONLY)
return 1;
+ if (!(perms & 0600)) /* XXX sanity */
+ perms = 0644;
+
/* we should accept NULL as a valid prefix */
if (!prefix) prefix="";