mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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:
@@ -3204,6 +3204,12 @@ x_i_memcmp(const void *a, const void *b, unsigned long n)
|
|||||||
return 0;
|
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
|
int
|
||||||
x_i_fchmod(int fd, mode_t mode)
|
x_i_fchmod(int fd, mode_t mode)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user