Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set errno to EPERM for dangerous symlinks
RPM refuses to follow non root owned symlinks pointing to files owned by another user for security reasons. This case was lumped in with other issues resulting in us setting errno to ENOTDIR. This led to confusing as the symlink often indeed points at a directory. Using EPERM is still not 100% right but points at least roughly into the right direction. May be we should catch EPERM further up the call stack and use it to give a more meaningfull error message. Resolves: rpm-software-management#3100
- Loading branch information