projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d4d43
)
Fail log was not written when root directory was read only.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Thu, 25 Dec 2014 18:57:27 +0000
(19:57 +0100)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 28 Dec 2014 18:27:34 +0000
(19:27 +0100)
includes/session.inc
patch
|
blob
|
history
diff --git
a/includes/session.inc
b/includes/session.inc
index 697bb48da6823fed173a4c44d391f7715abe1d2c..0bddc33d4e2a8673df6992d4f7de3822ce88bc73 100644
(file)
--- a/
includes/session.inc
+++ b/
includes/session.inc
@@
-219,7
+219,7
@@
function write_login_filelog($login, $result)
$filename = $path_to_root."/tmp/faillog.php";
- if ((!file_exists($filename) && is_writable($path_to_root)) || is_writable($filename))
+ if ((!file_exists($filename) && is_writable($path_to_root
.'/tmp'
)) || is_writable($filename))
{
file_put_contents($filename, $msg);
}