From 519bd7a0f2f056d9bba1ce81abad6e77571abe40 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 17 Jun 2025 23:38:46 -0400 Subject: [PATCH] check about the stat command --- lib/uniprc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/uniprc.c b/lib/uniprc.c index f2669c4..e9c8e24 100644 --- a/lib/uniprc.c +++ b/lib/uniprc.c @@ -55,8 +55,10 @@ struct stat bufstat; id=(uid_t)0; fullname=rou_apppath(appname); +(void) fprintf(stderr,"JMPDBG fullname=<%s>\n",fullname); if (stat(fullname,&bufstat)<0) - (void) rou_alert(0,"%s Unable to get <%s> stat (bug?)",OPEP,fullname); + (void) rou_alert(0,"%s Unable to get <%s> stat (error=<%s> bug?)", + OPEP,fullname,strerror(errno)); else { if (group==false) id=bufstat.st_uid; -- 2.47.3