projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b44a5c3
)
issue81, check if f-spot database is writeable
author
Andreas Unterkircher
<unki@netshadow.at>
Sat, 15 Dec 2007 13:32:40 +0000
(13:32 +0000)
committer
Andreas Unterkircher
<unki@netshadow.at>
Sat, 15 Dec 2007 13:32:40 +0000
(13:32 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@315
fa6a889d
-dae6-447d-9e79-
4ba9a3039384
phpfspot.class.php
patch
|
blob
|
history
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index ffd7e7e3d9a4855542ffb98ea3594217956c4012..e2b24a861b6296589511f8487c05c112e1af721f 100644
(file)
--- a/
phpfspot.class.php
+++ b/
phpfspot.class.php
@@
-54,6
+54,10
@@
class PHPFSPOT {
}
$this->db = new PHPFSPOT_DB($this, $this->cfg->fspot_db);
+ if(!is_writeable($this->cfg->fspot_db)) {
+ print $this->cfg->fspot_db ." is not writeable for user ". $this->getuid() ."\n";
+ exit(1);
+ }
if(!is_writeable(dirname($this->cfg->phpfspot_db))) {
print dirname($this->cfg->phpfspot_db) .": directory is not writeable!";