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

(-)libsandbox.c.orig (-2 / +5 lines)
Lines 273-279 Link Here
273
		 * realpath of the parent directory, as that should hopefully
273
		 * realpath of the parent directory, as that should hopefully
274
		 * exist.  If all else fails, just go with canonicalize */
274
		 * exist.  If all else fails, just go with canonicalize */
275
		char *ret;
275
		char *ret;
276
		if (trace_pid)
276
		if (follow_link == 2)
277
			/* Follow dirname and append basename. This is already handled below */
278
			ret = 0;
279
		else if (trace_pid)
277
			ret = erealpath(path, filtered_path);
280
			ret = erealpath(path, filtered_path);
278
		else
281
		else
279
			ret = realpath(path, filtered_path);
282
			ret = realpath(path, filtered_path);
Lines 948-954 Link Here
948
	bool access, debug, verbose;
951
	bool access, debug, verbose;
949
952
950
	absolute_path = resolve_path(file, 0);
953
	absolute_path = resolve_path(file, 0);
951
	resolved_path = resolve_path(file, 1);
954
	resolved_path = resolve_path(file, (flags&AT_SYMLINK_NOFOLLOW?2:1));
952
	if (!absolute_path || !resolved_path)
955
	if (!absolute_path || !resolved_path)
953
		goto error;
956
		goto error;
954
957

Return to bug 348763