-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Only use local files (file://) when they have explicit permissions a+r #5622
Conversation
I think this pull request, and the linked #5620 still wouldn’t catch a situation when |
Does the change from Edit: I think symlinks to non-regular fail the dan@Viking:~$ ls -la
total 136
drwxr-xr-x 15 dan dan 4096 Mar 29 17:14 .
drwxr-xr-x 3 root root 4096 Nov 21 2022 ..
lrwxrwxrwx 1 dan dan 8 Mar 29 17:14 non-regular -> /dev/sda
lrwxrwxrwx 1 dan dan 11 Mar 29 17:14 regular -> /etc/shadow dan@Viking:~$ cat b.sh
if [[ ! -f non-regular ]]; then
echo "non-regular ! -f"
else
echo "non-regular -f"
fi
if [[ ! -f regular ]]; then
echo "regular ! -f"
else
echo "regular -f"
fi dan@Viking:~$ bash b.sh
non-regular ! -f
regular -f Edit 2: From
|
Yeah that's right actually |
Co-authored-by: Dan Schaper <dan.schaper@pi-hole.net> Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
What does this implement/fix?
This PR ports the most-recent changes from PRs #5615, #5618 amd #5620 to v6.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.