Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 346929
Collapse All | Expand All

(-)libsandbox/wrapper-funcs/mkdirat_pre_check.c (+9 lines)
Lines 12-17 Link Here
12
12
13
	save_errno();
13
	save_errno();
14
14
15
	/* XXX: The findutils tests check for ENOENT if pathname is empty.
16
	 * We need to specialcase this, as passing an existing directory
17
	 * including trailing slash to mkdirat needs to fail with EEXIST.
18
	 */
19
	if (pathname && pathname[0] == '\0') {
20
		errno = ENOENT;
21
		return false;
22
	}
23
15
	/* Expand the dirfd path first */
24
	/* Expand the dirfd path first */
16
	switch (resolve_dirfd_path(dirfd, pathname, dirfd_path, sizeof(dirfd_path))) {
25
	switch (resolve_dirfd_path(dirfd, pathname, dirfd_path, sizeof(dirfd_path))) {
17
		case -1:
26
		case -1:

Return to bug 346929