From: Jean-Marc Pigeon (Delson) Date: Sun, 22 Jun 2025 00:55:02 +0000 (-0400) Subject: Checking the log function for sender X-Git-Tag: tag-0.9~40 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=68f3b9386193af655c80924da5ccc2f4c39ac1a1;p=jmp%2Fmailleur Checking the log function for sender --- diff --git a/app/sender.c b/app/sender.c index 85e1d9d..605f988 100644 --- a/app/sender.c +++ b/app/sender.c @@ -189,12 +189,12 @@ while (proceed==true) { } break; case 2 : //Preparing scan - (void) prc_chgid(argv[0]); (void) rou_modesubrou(true); (void) sig_modeunisig(true); (void) rou_setappname(SENDER); - (void) rou_loadconfig(config,true); (void) openlog(appname,LOG_NDELAY|LOG_PID,LOG_DAEMON); + (void) rou_loadconfig(config,true); + (void) prc_chgid(argv[0]); if (foreground==false) { if (prc_divedivedive()!=0) phase=999; //direct exit diff --git a/lib/uniprc.c b/lib/uniprc.c index 50c5940..7a83214 100644 --- a/lib/uniprc.c +++ b/lib/uniprc.c @@ -481,16 +481,6 @@ if (getuid()==0) { /*is changing ID possible */ strerror(errno), getuid(),getgid(), geteuid(),getegid()); - if (setgid(gid)<0) - (void) rou_alert(0,MSG,OPEP,"setgid",gid, - strerror(errno), - getuid(),getgid(), - geteuid(),getegid()); - if (setuid(uid)<0) - (void) rou_alert(0,MSG,OPEP,"setuid",uid, - strerror(errno), - getuid(),getgid(), - geteuid(),getegid()); (void) rou_alert(6,"%s, euid='%d', egid='%d' now set", OPEP,geteuid(),getegid()); }