aboutsummaryrefslogtreecommitdiff
path: root/src/stat/lchmod.c
blob: 8870b00284d939f28f4c16d920aa3818d0ca5b6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define _GNU_SOURCE
#include <sys/stat.h>
#include <fcntl.h>

int lchmod(const char *path, mode_t mode)
{
	return fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW);
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif