remove the temp in directls.c and locate the bug

found that errors in qksort.c but don't know where