You're right, this most probably needs a fix. > However, if pkg_add(1) does not have write permission to > $PKG_CACHE, then unclear error messages are produced.
So, there is an error which makes you think. You notice and consider something is not that right, then go to address the issue. In the best possible way you can, or plead for help or just fix it yourself, depending on your perseverance. > One solution is for pkg_add(1) to silently omit the attempt to copy > the package to an unwritable $PKG_CACHE. Probably other solutions exist, some may be better. Logically you would be setting this variable in the first place to get the packages cached. The end result with the change proposed would be to hide the problem you have with permissions for $PKG_CACHE. In the end you will not be caching anything. Why would your proposed change be the best solution then, when it hides the problem, instead of fixing it completely? Please see the principle instead of minutia.