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

Collapse All | Expand All

(-)libselinux-3.6.old/src/selinux_restorecon.c (-2 / +2 lines)
Lines 436-442 Link Here
436
	file_spec_t *prevfl, *fl;
436
	file_spec_t *prevfl, *fl;
437
	uint32_t h;
437
	uint32_t h;
438
	int ret;
438
	int ret;
439
	struct stat64 sb;
439
	struct stat sb;
440
440
441
	__pthread_mutex_lock(&fl_mutex);
441
	__pthread_mutex_lock(&fl_mutex);
442
442
Lines 450-456 Link Here
450
	for (prevfl = &fl_head[h], fl = fl_head[h].next; fl;
450
	for (prevfl = &fl_head[h], fl = fl_head[h].next; fl;
451
	     prevfl = fl, fl = fl->next) {
451
	     prevfl = fl, fl = fl->next) {
452
		if (ino == fl->ino) {
452
		if (ino == fl->ino) {
453
			ret = lstat64(fl->file, &sb);
453
			ret = lstat(fl->file, &sb);
454
			if (ret < 0 || sb.st_ino != ino) {
454
			if (ret < 0 || sb.st_ino != ino) {
455
				freecon(fl->con);
455
				freecon(fl->con);
456
				free(fl->file);
456
				free(fl->file);

Return to bug 905711