linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / ntopng / 0002-Remove-requirement-to-have-writeable-callback-dir.patch
blob50ed1daebd4843f39bd433a19a4dac7849efa077
1 diff --git a/src/Ntop.cpp b/src/Ntop.cpp
2 index 8de92a9..510418f 100644
3 --- a/src/Ntop.cpp
4 +++ b/src/Ntop.cpp
5 @@ -197,8 +197,7 @@ void Ntop::registerPrefs(Prefs *_prefs) {
8 if(stat(prefs->get_callbacks_dir(), &statbuf)
9 - || (!(statbuf.st_mode & S_IFDIR)) /* It's not a directory */
10 - || (!(statbuf.st_mode & S_IWRITE)) /* It's not writable */) {
11 + || (!(statbuf.st_mode & S_IFDIR)) /* It's not a directory */) {
12 ntop->getTrace()->traceEvent(TRACE_ERROR, "Invalid directory %s specified",
13 prefs->get_callbacks_dir());
14 _exit(-1);