]> SAFE projects GIT repository - jmp/mailleur/commitdiff
check about the stat command
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 03:38:46 +0000 (23:38 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 03:38:46 +0000 (23:38 -0400)
lib/uniprc.c

index f2669c478052d5b93e30ee3b4edc0fdcb84dfa77..e9c8e24611f2a3574d2fb914e9df3d693c1f6236 100644 (file)
@@ -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;