| Server IP : 82.208.35.60 / Your IP : 216.73.217.116 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/www/tinyproxy/files/ |
Upload File : |
--- src/main.c.orig 2021-04-16 12:31:11 UTC
+++ src/main.c
@@ -377,17 +377,17 @@ main (int argc, char **argv)
}
}
+ /* Create log file before we drop privileges */
+ if (setup_logging ()) {
+ exit (EX_SOFTWARE);
+ }
+
/* Switch to a different user if we're running as root */
if (geteuid () == 0)
change_user (argv[0]);
else
log_message (LOG_INFO,
"Not running as root, so not changing UID/GID.");
-
- /* Create log file after we drop privileges */
- if (setup_logging ()) {
- exit (EX_SOFTWARE);
- }
/* These signals are only for the parent process. */
log_message (LOG_INFO, "Setting the various signals.");