Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When umtp encounters a directory with a dangling symlink, it would wrongly presume an access issue, log and error: MTP_OPERATION_GET_OBJECT_HANDLES : FOLDER ACCESS ERROR ! and the host/client would throw an "Input/output error" at the user. The fix is rather straight-forward: have the "fs_find_first_file" actually iterate over the entries returned by "readdir", and not just stop at the (possibly broken) first. Also log the error as PRINT_WARNING in the daemon's log output, so that a user can diagnose&fix the issue. Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
- Loading branch information