rospack cache files in .ros directory with no access rights
Why are there files created in .ros without even owner read permissions?
phil@marble-XPS-15-9560:~$ cp -a .ros/ /tmp/ros_backup
cp: cannot open '.ros/rospack_cache_02946445166995464026' for reading: Permission denied
phil@marble-XPS-15-9560:~$ ls -lah .ros/rospack_cache_*
---------- 1 phil phil 6.0K Mar 3 12:07 .ros/rospack_cache_02946445166995464026
I would not know how this happened, but a
sudo chmod 0644 $HOME/.ros/rospack_cache_*
should fix it.And just to make your question a bit more discoverable I've changed the title to better convey what it is you observed.
Thanks, I'm aware how to chmod files in unix. Like my original question stated, I am wondering why ROS is doing this? It seems like a bug, unless I'm missing some reasoning behind an unreadable cache file?
I've submitted an issue and a PR for this to ros/rospack: https://github.com/ros/rospack/issues...