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