From: Jean-Marc Pigeon (Delson) Date: Wed, 18 Jun 2025 03:13:43 +0000 (-0400) Subject: Checking if prc_chgid is working X-Git-Tag: tag-0.9~118 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=573b90e09e0575af1fc1282fcddd020f4e6a81ed;p=jmp%2Fmailleur Checking if prc_chgid is working --- diff --git a/lib/Makefile b/lib/Makefile index e974170..9f2c837 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,7 +2,6 @@ #Executable generation area #-------------------------------------------------------------------- debug : toremake - @ echo CFLAGS=$(CFLAGS) $(MAKE) \ $(PAR) \ OPTIME="-g -DMODEDEBUG" \ diff --git a/lib/uniprc.c b/lib/uniprc.c index 830ad52..d13fb83 100644 --- a/lib/uniprc.c +++ b/lib/uniprc.c @@ -457,6 +457,7 @@ void prc_chgid(char *appnom) { #define OPEP "uniprc.c:prc_chgid," + #define MSG \ "%s Unable to %s to '%d' (error=<%s> (cur u/g id='%d/%d',eid='%d/%d') bug?)" @@ -479,6 +480,7 @@ if (getuid()==0) { /*is changing ID possible */ strerror(errno), getuid(),getgid(), geteuid(),getegid()); + (void) rou_alert(0,"%s, euid='%d', egid='%d' now set",OPEP,geteuid,getegid); } if (getrlimit(RLIMIT_CORE,&limites)<0) { (void) rou_alert(0,"%s getrlimit error='%s'",OPEP,strerror(errno)); diff --git a/mailleur.spec.in b/mailleur.spec.in index a8c2c36..74d3d25 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -171,6 +171,8 @@ Obsoletes : %{name}-postgresql <= %{version}-%{release} #building application %build +#DB=1 ->Postgresql +#DB=2 ->MYSQL %{__make} \ DB=1 \ debug