Преглед на файлове

testc: Don't access() shared objects because it can be found using LD_LIBRARY_PATH

Serj Kalichev преди 4 години
родител
ревизия
c64e6b76df
променени са 1 файла, в които са добавени 0 реда и са изтрити 6 реда
  1. 0 6
      testc/testc.c

+ 0 - 6
testc/testc.c

@@ -96,12 +96,6 @@ int main(int argc, char *argv[]) {
 
 		printf("--------------------------------------------------------------------------------\n");
 
-		if (access(so, R_OK) < 0) {
-			fprintf(stderr, "Error: Can't read module \"%s\"... Skipped\n", so);
-			total_errors++;
-			continue;
-		}
-
 		so_handle = dlopen(so, RTLD_LAZY | RTLD_LOCAL);
 		if (!so_handle) {
 			fprintf(stderr, "Error: Can't open module \"%s\"... Skipped\n", so);