summaryrefslogtreecommitdiff
path: root/sys-apps/acl/files/acl-2.3.1-musl-1.2.4-lfs64-fix.patch
blob: 3b5d2c6babdc8e6e8673829f8aae320b9d3de900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Bug: https://bugs.gentoo.org/905910
Upstream Bug: https://savannah.nongnu.org/bugs/index.php?64162

From a9100afd77fea00b311f114a5a04108283aa681a Mon Sep 17 00:00:00 2001
From: Violet Purcell <vimproved@inventati.org>
Date: Mon, 8 May 2023 04:17:07 +0000
Subject: [PATCH] musl 1.2.4 LFS64 removal fixes

---
 tools/chacl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/chacl.c b/tools/chacl.c
index 525a7ff..8fff875 100644
--- a/tools/chacl.c
+++ b/tools/chacl.c
@@ -320,7 +320,7 @@ walk_dir(acl_t acl, acl_t dacl, const char *fname)
 {
 	int failed = 0;
 	DIR *dir;
-	struct dirent64 *d;
+	struct dirent *d;
 	char *name;
 
 	if ((dir = opendir(fname)) == NULL) {
@@ -332,7 +332,7 @@ walk_dir(acl_t acl, acl_t dacl, const char *fname)
 		return(0);	/* got a file, not an error */
 	}
 
-	while ((d = readdir64(dir)) != NULL) {
+	while ((d = readdir(dir)) != NULL) {
 		/* skip "." and ".." entries */
 		if (strcmp(d->d_name, ".") == 0 || strcmp(d->d_name, "..") == 0)
 			continue;
-- 
2.40.1