(remove_cwd_entries): Don't apply CLOSEDIR to a NULL
authorJim Meyering <jim@meyering.net>
Sun, 25 Oct 1998 13:58:50 +0000 (13:58 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 25 Oct 1998 13:58:50 +0000 (13:58 +0000)
commit9e630b86cb456b1551feed0f7e9ae75931a2af29
tree7a0715b1b86353fe392b67125915c5b29509792b
parent2e19f14a91a4657734b43ebc1c9368062d297c80
(remove_cwd_entries): Don't apply CLOSEDIR to a NULL
pointer. (provoke with `mkdir -m 0100 x; rm -rf x')
Upon CLOSEDIR failure, set `status' to RM_ERROR, not RM_OK.
(remove_dir): Return `status', rather than always RM_OK.
src/remove.c