mailing list of musl libc
 help / color / mirror / code / Atom feed
636bfba7a82e7cf5480d974aca82bc6b33697d12 blob 449 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#include <spawn.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include "fdop.h"

int posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *restrict fa, const char *restrict path)
{
	size_t len = strlen(path);
	if (__faexpand(fa, len + 1) != 0) return ENOMEM;
	fa->fa_ops[fa->fa_cnt++] = INT_MAX;
	fa->fa_ops[fa->fa_cnt++] = -FDOP_CHDIR;
	memcpy((posix_spawn_file_actions_t *)fa->fa_chain + 1, path, len + 1);
	return 0;
}
debug log:

solving 636bfba7 ...
found 636bfba7 in https://inbox.vuxu.org/musl/20220506190716.0d0483778c4bf15daddc22a3@zhasha.com/
found 7f2590ae in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 7f2590ae4e160c2cb4b8672156aff2d3efdd29b9	src/process/posix_spawn_file_actions_addchdir.c

applying [1/1] https://inbox.vuxu.org/musl/20220506190716.0d0483778c4bf15daddc22a3@zhasha.com/
diff --git a/src/process/posix_spawn_file_actions_addchdir.c b/src/process/posix_spawn_file_actions_addchdir.c
index 7f2590ae..636bfba7 100644

Checking patch src/process/posix_spawn_file_actions_addchdir.c...
Applied patch src/process/posix_spawn_file_actions_addchdir.c cleanly.

index at:
100644 636bfba7a82e7cf5480d974aca82bc6b33697d12	src/process/posix_spawn_file_actions_addchdir.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).