* Shamil Abdulaev: > + char *path; > + create_temp_file ("tst-fopen-ccs-empty", &path); This should be: xclose (create_temp_file ("tst-fopen-ccs-empty", &path)); so that the descriptor does not leak. Rest looks okay. Thanks, Florian