mailing list of musl libc
 help / color / mirror / code / Atom feed
e99a1462e1ec5f5052d5d19e17371bfcec7bdbc1 blob 234 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#include <sys/stat.h>
#include <fcntl.h>
#include "syscall.h"

int chmod(const char *path, mode_t mode)
{
#ifdef SYS_chmod
	return syscall(SYS_chmod, path, mode);
#else
	return syscall(SYS_fchmodat, AT_FDCWD, path, mode, 0);
#endif
}
debug log:

solving e99a146 ...
found e99a146 in https://inbox.vuxu.org/musl/20200219023222.35095-1-zhangtianci1@huawei.com/
found d4f53c5 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 d4f53c564e14701ea360a7159037c39838266d9f	src/stat/chmod.c

applying [1/1] https://inbox.vuxu.org/musl/20200219023222.35095-1-zhangtianci1@huawei.com/
diff --git a/src/stat/chmod.c b/src/stat/chmod.c
index d4f53c5..e99a146 100644

Checking patch src/stat/chmod.c...
Applied patch src/stat/chmod.c cleanly.

index at:
100644 e99a1462e1ec5f5052d5d19e17371bfcec7bdbc1	src/stat/chmod.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).