[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#797556: lintian: False positive in maintainer-script-should-not-use-adduser-system-without-home if --system comes after --home



Package: lintian
Version: 2.5.36.1

Hi,

There is a false positive in the
"maintainer-script-should-not-use-adduser-system-without-home" tag if
the --system argument comes after --home.

Whilst the adduser manpage suggests this wouldn't work, adduser will
happily accept it. For example:

  		adduser \
			    --home /var/lib/redis \
			    --quiet \
			    --system \
			    --group \
			    ${USER}

.. appears to work fine, but Lintian warns.

Looking at the regex for this tag in
data/scripts/maintainer-script-bad-command indicates why (ie. enforced
ordering on the line), but my regex-fu is not strong enough to support
either ordering without essentially duplicating the line, hence no "Tag:
patch".

Of course, it might also be acceptable to wontfix this not accept this
variant - I am unsure of the Lintian policy in this area.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-


Reply to: