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

Collapse All | Expand All

(-)a/src/timezone/pgtz.c (+7 lines)
Lines 1615-1620 Link Here
1615
		if (direntry->d_name[0] == '.')
1615
		if (direntry->d_name[0] == '.')
1616
			continue;
1616
			continue;
1617
1617
1618
		/* copy current working directory so that there is no risk of modification by basename(),
1619
		 * and compare to current direntry name; skip if they are the same as this is a recursive fs loop
1620
		 */
1621
		snprintf(fullname, MAXPGPATH, "%s", dir->dirname[dir->depth]);
1622
		if (strncmp(direntry->d_name,basename(fullname),strlen(direntry->d_name)) == 0)
1623
			continue;
1624
1618
		snprintf(fullname, MAXPGPATH, "%s/%s",
1625
		snprintf(fullname, MAXPGPATH, "%s/%s",
1619
				 dir->dirname[dir->depth], direntry->d_name);
1626
				 dir->dirname[dir->depth], direntry->d_name);
1620
		if (stat(fullname, &statbuf) != 0)
1627
		if (stat(fullname, &statbuf) != 0)

Return to bug 486556