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

Wrong file owner for files in deb package #213

Closed
sharkdp opened this issue Jan 4, 2018 · 4 comments
Closed

Wrong file owner for files in deb package #213

sharkdp opened this issue Jan 4, 2018 · 4 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented Jan 4, 2018

Currently, the linter for Debian packages shows that the files are not created by root (but by the Travis user with uid 2000):

> lintian fd_6.2.0_amd64.deb 
W: fd: missing-depends-line
E: fd: changelog-file-missing-in-native-package
E: fd: no-copyright-file
E: fd: extended-description-is-empty
E: fd: maintainer-address-missing David Peter
E: fd: wrong-file-owner-uid-or-gid usr/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/bin/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/bin/fd 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/bash-completion/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/bash-completion/completions/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/bash-completion/completions/fd 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/doc/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/doc/fd/ 2000/2000
E: fd: bad-owner-for-doc-file usr/share/doc/fd/ travis/travis != root/root
E: fd: wrong-file-owner-uid-or-gid usr/share/doc/fd/LICENSE-APACHE 2000/2000
E: fd: bad-owner-for-doc-file usr/share/doc/fd/LICENSE-APACHE travis/travis != root/root
E: fd: wrong-file-owner-uid-or-gid usr/share/doc/fd/LICENSE-MIT 2000/2000
E: fd: bad-owner-for-doc-file usr/share/doc/fd/LICENSE-MIT travis/travis != root/root
E: fd: wrong-file-owner-uid-or-gid usr/share/doc/fd/README.md 2000/2000
E: fd: bad-owner-for-doc-file usr/share/doc/fd/README.md travis/travis != root/root
E: fd: wrong-file-owner-uid-or-gid usr/share/fish/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/fish/completions/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/fish/completions/fd.fish 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/man/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/man/man1/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/man/man1/fd.1 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/zsh/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/zsh/vendor-completions/ 2000/2000
E: fd: wrong-file-owner-uid-or-gid usr/share/zsh/vendor-completions/_fd 2000/2000
E: fd: manpage-not-compressed usr/share/man/man1/fd.1

Unfortunately, the file owner problems lead to a bug where zsh will not parse the autocompletion file and print a warning:

zsh compinit: insecure files, run compaudit for list.
Ignore insecure files and continue [y] or abort compinit [n]? 

I'm already working on a fix.

@sharkdp
Copy link
Owner Author

sharkdp commented Jan 4, 2018

The bug has been fixed for future releases.

I have also update the fd_6.2.0_amd64.deb package for the current release.

@kbenzie
Copy link

kbenzie commented Jan 8, 2018

This also affects fd-musl_6.2.0_amd64, I think it also needs updated. I've not checked the others but it may also affect them.

@sharkdp
Copy link
Owner Author

sharkdp commented Jan 8, 2018

Yes, it will affect all deb packages (except the one I updated) - sorry for that. This should be fixed with the next release (and is easy to fix via sudo chown -R root:root ...)

@sharkdp
Copy link
Owner Author

sharkdp commented Feb 10, 2018

Fix released in v6.3.0

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

No branches or pull requests

2 participants