Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 125701 | Differences between
and this patch

Collapse All | Expand All

(-)uClibc-0.9.28.3/libc/stdlib/realpath.c.orig (-1 / +2 lines)
Lines 71-77 Link Here
71
	/* If it's a relative pathname use getcwd for starters. */
71
	/* If it's a relative pathname use getcwd for starters. */
72
	if (*path != '/') {
72
	if (*path != '/') {
73
		/* Ohoo... */
73
		/* Ohoo... */
74
		getcwd(new_path, PATH_MAX - 1);
74
		if (getcwd(new_path, PATH_MAX - 1) == NULL)
75
			return NULL;
75
		new_path += strlen(new_path);
76
		new_path += strlen(new_path);
76
		if (new_path[-1] != '/')
77
		if (new_path[-1] != '/')
77
			*new_path++ = '/';
78
			*new_path++ = '/';

Return to bug 125701