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

1
2
3
4
5
6
7
8
9
 
#include <stdlib.h>
#include <limits.h>
#include "atomics.h"

char *__realpath_chk(const char *filename, char *resolved, size_t resolved_len)
{
	if (resolved_len < PATH_MAX) a_crash();
	return realpath(filename, resolved);
}
debug log:

solving cc0089e ...
found cc0089e in https://inbox.vuxu.org/musl/1434509291-28997-1-git-send-email-josiahw@gmail.com/

applying [1/1] https://inbox.vuxu.org/musl/1434509291-28997-1-git-send-email-josiahw@gmail.com/
diff --git a/src/compat/realpath_chk.c b/src/compat/realpath_chk.c
new file mode 100644
index 0000000..cc0089e

Checking patch src/compat/realpath_chk.c...
Applied patch src/compat/realpath_chk.c cleanly.

index at:
100644 cc0089e5bc8b99faa12e28fd403ef7c0fd3eacf5	src/compat/realpath_chk.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).