add portable lchown (trivial to support and a few ancient things want it..)
This commit is contained in:
parent
982a478433
commit
d5ca067c7b
2 changed files with 10 additions and 0 deletions
7
src/stat/lchmod.c
Normal file
7
src/stat/lchmod.c
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
int lchmod(const char *path, mode_t mode)
|
||||
{
|
||||
return fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue