summaryrefslogtreecommitdiff
path: root/db-check-package-libraries
AgeCommit message (Collapse)Author
2017-04-29db-check-package-libraries: Make it more robust.Luke Shumaker
First, to ease debugging, put some information in tmpdir filenames. Then, to avoid issues with reading files that are mode unreadable, or stat()ing them in unexecutable directories, add two `find` commands that reset bad permissions to 755/644. Then, skip over symlinks. Beside absolute links being broken in our implementation, it also means that links to files in different packages are broken. This leads to an exception being thrown, as the file can't be open()ed. Finally, skip over non-regular-file files. One package I tried contained a named FIFO, which caused it to hang on open().
2016-04-17Give things more consistent namesLuke Shumaker