#1013918 lintian: False positive: `chown --reference=foo bar.baz` triggers chown-with-dot

#1013918#5
Date:
2022-06-27 10:57:43 UTC
From:
To:
Package: lintian
Version: 2.115.1
Severity: normal

Dear Maintainer,

roundcube-core's postinst contains

    chown --reference="$CONFFILE" "$CONFFILE.ucftmp"

which triggers a false positive with tag chown-with-dot.  Indeed
"chown --reference=foo bar.baz" matches

    m{ \b chown \s+ (?: -\S+ \s+ )* ( \S+ [.] \S+ ) \b }x,

but that chown command has no ambiguous user.group argument.

Thanks for maintaining Lintian!

#1013918#12
Date:
2022-06-27 13:45:07 UTC
From:
To:
Hi,

Guilhem Moulin wrote:

Nice catch! Thanks for the bug report!

		Regards, Axel