summaryrefslogtreecommitdiff
path: root/src/stat/lchmod.c
blob: c35f586116f50a3520524858c5e938cc088bd3ba (plain)
1
2
3
4
5
6
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);
}