#883 do not use argv[0] in syslog log message

Before:

Dec  3 11:18:12 ogLab /opt/opengnsys/sbin/ogAdmServer[1025]: server closing connection to 192.168.56.10:50476

After this patch:

Dec  3 11:18:12 ogLab ogAdmServer[1025]: server closing connection to 192.168.56.10:50476
master
OpenGnSys Support Team 2018-12-05 14:01:20 +01:00
parent f09aca620c
commit 57c8c50524
1 changed files with 1 additions and 1 deletions

View File

@ -3727,7 +3727,7 @@ int main(int argc, char *argv[])
int activo=1;
int i;
openlog(argv[0], LOG_PID, LOG_DAEMON);
openlog("ogAdmServer", LOG_PID, LOG_DAEMON);
/*--------------------------------------------------------------------------------------------------------
Validación de parámetros de ejecución y lectura del fichero de configuración del servicio