MCPcopy Index your code
hub / github.com/git/git / chdir_len

Function chdir_len

unix-socket.c:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#define DEFAULT_UNIX_STREAM_LISTEN_BACKLOG (5)
8
9static int chdir_len(const char *orig, int len)
10{
11 char *path = xmemdupz(orig, len);
12 int r = chdir(path);
13 free(path);
14 return r;
15}
16
17struct unix_sockaddr_context {
18 char *orig_dir;

Callers 1

unix_sockaddr_initFunction · 0.85

Calls 2

xmemdupzFunction · 0.85
chdirFunction · 0.85

Tested by

no test coverage detected