PERFORCE change 164254 for review

Robert Watson rwatson at FreeBSD.org
Sat Jun 13 10:03:36 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164254

Change 164254 by rwatson at rwatson_freebsd_capabilities on 2009/06/13 10:02:43

	Don't test lseek(2) in the IN_RTLD_CAP case, as we don't need it
	any longer.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#17 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#17 (text+ko) ====

@@ -1595,10 +1595,6 @@
 	_rtld_error("Unable to find \"%s\" in LD_CAPLIBINDEX", path);
 	return NULL;
     }
-    if (lseek(fd, 0, SEEK_SET) == -1) {
-	_rtld_error("Unable to seek on \"%s\"", path);
-	return NULL;
-    }
 #else
     path = find_library(name, refobj);
     if (path == NULL)


More information about the p4-projects mailing list