On Friday, 15 October 2021 11:00:24 CEST, Karl Auer wrote:
On Fri, 2021-10-15 at 10:15 +0200, Michael wrote:
Wholesale suppression of warnings is generally a bad idea. Especially
when they are security-related.
full ack. but if the warning says: 'symlink leaves directory', and it just
doesn't, then i call this warning misleading.
Better to suppress your irritation :-)
i disagree. warnings have exactly the purpose to irritate! i can choose to
ignore my irritation, but i'd never choose to supress it.
Alternatively, maybe change the check to something like:
X=`readlink "$f"`
echo "$X" | \
grep "SYMLINK_OK" || \
echo "$X" grep -q / && $WARN [...]
Then put a comment line with "SYMLINK_OK" in any file you don't want to
be bugged about.
even if i considered your solution, which i don't, i'd modify it to
something like:
X="$(readlink "$f")"
grep -q "SYMLINK_OK" "$X" || \
{ echo "$X" | grep -q / && ...; }
... but
you get the idea.
yes, and i don't like it. i would have do modify a file from the postfix
package (debian) which would probably appear in 'dpkg -V', very much to my
dislike.
greetings...