]> git.ipfire.org Git - thirdparty/util-linux.git/commit
namei: fix to argument handling
authorSami Kerola <kerolasa@iki.fi>
Sat, 11 Jun 2011 14:45:53 +0000 (16:45 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 25 Jun 2011 10:37:37 +0000 (12:37 +0200)
commit5a0d9255698ba5e13e392bdef04d7a51269e6e3a
tree9386b9a1d0cc04a81d85a33ae9270727541e6913
parentb977951749fcd30a11c5bff608ee5a18e41c65ee
namei: fix to argument handling

Missing pathname argument can only be checked after options are
parsed. Earlier for example 'namei -l' print nothing and was
successful.

The option parsing is changed to be less POSIXLY_CORRECT and
continue if nonoption argument is found, which allows users to
define options and arguments in the order they prefer.

Unknown short options, which earlier matched case '?' that was
help option alias, are now made to indicate failure in return
value.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/namei.c