Your message dated Thu, 20 Aug 2026 08:14:03 +0200
with message-id <[email protected]>
and subject line fixed stat/fstat/lstat
has caused the Debian Bug report #1144141,
regarding purelibc: stat/fstat/lstat do not work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1144141: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1144141
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: purelibc
Version: 1.0.8-1
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
* What led up to the situation?
an update of the glibc
* What exactly did you do (or not do) that was effective (or ineffective)?
system calls stat/fstat/lstat cannot be virtualized
* an updated package is needed for trixie
the following code pt.c works on purelibc 1.0.9, it fails in 1.0.8
compile it:
gcc -o pt pt.c -l purelibc
----
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <sys/syscall.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <purelibc.h>
static sfun _native_syscall;
static char buf[128];
static long int mysc(long int sysno, ...){
va_list ap;
long int a1,a2,a3,a4,a5,a6;
va_start (ap, sysno);
snprintf(buf,128,"SC=%d\n",sysno);
_native_syscall(__NR_write,2,buf,strlen(buf));
a1=va_arg(ap,long int);
a2=va_arg(ap,long int);
a3=va_arg(ap,long int);
a4=va_arg(ap,long int);
a5=va_arg(ap,long int);
a6=va_arg(ap,long int);
va_end(ap);
return _native_syscall(sysno,a1,a2,a3,a4,a5,a6);
}
int main() {
int c;
_native_syscall=_pure_start(mysc,PUREFLAG_STDALL);
struct stat buf;
stat("/", &buf);
lstat("/", &buf);
return 0;
}
------
-- System Information:
Debian Release: trixie
--- End Message ---
--- Begin Message ---
1.0.10-1 on testing and sid
1.0.8-1+deb13u2 on stable
fix the problem
--- End Message ---