Selaa lähdekoodia

Put the chdir back, to simplify testing now that scandir
doesn't segfault anymore

Eric Andersen 22 vuotta sitten
vanhempi
commit
e78250dbf6
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      test/stdlib/qsort.c

+ 1 - 0
test/stdlib/qsort.c

@@ -19,6 +19,7 @@ int main(void)
 
     int i, numdir;        
 
+    chdir("/");
     numdir = scandir(".", &array, select_files, NULL);
     printf("\nGot %d entries from scandir().\n", numdir);              
     for (i = 0; i < numdir; ++i) {