team-ljyzipelo

공개

시험용 statx를 구형 glibc 헤더 선언과 분리

작성자
코노모리 카논
작성 시각
커밋
249f85adda07dbf63ad3a995d6fbfcb46ef34dc6
부모
d184f28
이 시점의 파일 보기

변경된 파일 1개

+4-1
수정tests/rust-archive-worker/private_group_nss.c+4-1
@@ -97,7 +97,10 @@ static const char *redirect(const char *path, char *buffer, size_t length) {
9797 return buffer;
9898}
9999
100삭제: int statx(int fd, const char *path, int flags, unsigned int mask, struct statx *info) {
100추가: int private_group_statx(int fd, const char *path, int flags, unsigned int mask,
101추가: struct statx *info) __asm__("statx");
102추가:
103추가: int private_group_statx(int fd, const char *path, int flags, unsigned int mask, struct statx *info) {
101104 int (*original)(int, const char *, int, unsigned int, struct statx *) = dlsym(RTLD_NEXT, "statx");
102105 const char *phase = getenv("ZIPELO_GROUP_CASE");
103106 if (path && phase && ((!strcmp(phase, "sss-probe-error") && !strncmp(path, "/var/lib/sss", 12)) ||