From 573b90e09e0575af1fc1282fcddd020f4e6a81ed Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 17 Jun 2025 23:13:43 -0400 Subject: [PATCH] Checking if prc_chgid is working --- lib/Makefile | 1 - lib/uniprc.c | 2 ++ mailleur.spec.in | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.3