another comment

it's a pretty insane hack. i should probably
just use normal fchmod

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-16 21:51:01 +00:00
parent ce139ab0ae
commit 841fe878f3

View File

@@ -3204,6 +3204,12 @@ x_i_memcmp(const void *a, const void *b, unsigned long n)
return 0;
}
/*
* emulate fchmod() using file descriptor
* paths, for old unix portability. should
* work on e.g. BSD/MacOS (/dev/fd/N),
* Linux (/proc/self/fd/N) and others
*/
int
x_i_fchmod(int fd, mode_t mode)
{