scandir.c modified access to struct st