blob: ee32eb0e252b26ef81dcdcf304b595236fb60d58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
From 6c4c7636f9629914d85531ea1dfe6abc275164ac Mon Sep 17 00:00:00 2001
From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org>
Date: Wed, 25 Oct 2023 15:23:20 +0000
Subject: [PATCH] community/acpid: fix lfs64 usage
--- a/sock.c
+++ b/sock.c
@@ -54,8 +54,8 @@
static int
isfdtype(int fd, int fdtype)
{
- struct stat64 st;
- if (fstat64(fd, &st) != 0)
+ struct stat st;
+ if (fstat(fd, &st) != 0)
return -1;
return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
}
|