2015-10-28 12:35:09 +00:00
|
|
|
diff --git a/src/Ntop.cpp b/src/Ntop.cpp
|
|
|
|
index 8de92a9..510418f 100644
|
|
|
|
--- a/src/Ntop.cpp
|
|
|
|
+++ b/src/Ntop.cpp
|
|
|
|
@@ -197,8 +197,7 @@ void Ntop::registerPrefs(Prefs *_prefs) {
|
2013-11-05 22:11:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(stat(prefs->get_callbacks_dir(), &statbuf)
|
2015-10-28 12:35:09 +00:00
|
|
|
- || (!(statbuf.st_mode & S_IFDIR)) /* It's not a directory */
|
2013-11-05 22:11:57 +00:00
|
|
|
- || (!(statbuf.st_mode & S_IWRITE)) /* It's not writable */) {
|
2015-10-28 12:35:09 +00:00
|
|
|
+ || (!(statbuf.st_mode & S_IFDIR)) /* It's not a directory */) {
|
2013-11-05 22:11:57 +00:00
|
|
|
ntop->getTrace()->traceEvent(TRACE_ERROR, "Invalid directory %s specified",
|
|
|
|
prefs->get_callbacks_dir());
|
2015-10-28 12:35:09 +00:00
|
|
|
_exit(-1);
|