Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
...@@ -1296,7 +1296,7 @@ int main(int argc, char **argv, char** env) ...@@ -1296,7 +1296,7 @@ int main(int argc, char **argv, char** env)
err_level=parseLogLevel(p); err_level=parseLogLevel(p);
break; break;
case 'e': case 'e':
if (errfp != stderr) if (errfp != NULL && errfp != stderr)
fclose(errfp); fclose(errfp);
if((errfp=fopen(p,omode))==NULL) { if((errfp=fopen(p,omode))==NULL) {
perror(p); perror(p);
...@@ -1340,7 +1340,7 @@ int main(int argc, char **argv, char** env) ...@@ -1340,7 +1340,7 @@ int main(int argc, char **argv, char** env)
omode="a"; omode="a";
break; break;
case 'A': case 'A':
if (errfp != stderr) if (errfp != NULL && errfp != stderr)
fclose(errfp); fclose(errfp);
if(*p == '\0') { if(*p == '\0') {
errfp = stdout; errfp = stdout;
......