nih_dir_walk() uses stat instead of lstat - makes deletion of files from directories very hard

Bug #802465 reported by Surbhi Palande on 2011-06-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

nih_dir_walk_scan () is a static function in file.c in the libnih package. This function is somewhat more suitable for deleting the files. The non static function which calls nih_dir_walk_scan is nih_dir_walk (). AFAIU, this is not very suitable for deleting the contents of a directory, but rather for reading them. The implementation of nih_dir_walk() particularly uses "stat" rather than "lstat" and so deletion of links is difficult using this function.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers