Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rospack cache files created with 000 permissions #117

Closed
ph1l opened this issue May 7, 2020 · 6 comments · Fixed by #119
Closed

rospack cache files created with 000 permissions #117

ph1l opened this issue May 7, 2020 · 6 comments · Fixed by #119
Labels

Comments

@ph1l
Copy link

ph1l commented May 7, 2020

The permissions on these files make no sense. Why write a file that no one can read?

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

https://answers.ros.org/question/351675/rospack-cache-files-in-ros-directory-with-no-access-rights/

@ph1l
Copy link
Author

ph1l commented May 7, 2020

It looks like the package build for melodic succeeded, but there are no artifacts in jenkins. Anywhere I can d/l then to test?

@dirk-thomas
Copy link
Member

There are no automatic binary artifacts. The Jenkins build only compiled the package and ran its tests.

@dirk-thomas
Copy link
Member

Please build the package with your changes from source locally and test that the patch actually adresses the problem (which the first version of the PR doesn't seem to do).

@ph1l
Copy link
Author

ph1l commented May 12, 2020

looks like the call to mkstemp (https://github.com/ros/rospack/blob/noetic-devel/src/rospack.cpp#L2080) should be creating the cache file, right? Am I misreading the man pages for mkstemp and fdopen?

@dirk-thomas
Copy link
Member

This is actually a regression since #106. Without the umask calls the file is created with 600 for me.

I am looking into a proper fix...

@dirk-thomas
Copy link
Member

Please try #119 which should fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants