Fix a bunch of little things from the previous changeset.
authorSteve Youngs <steve@sxemacs.org>
Mon, 10 Mar 2014 03:27:58 +0000 (13:27 +1000)
committerSteve Youngs <steve@sxemacs.org>
Mon, 10 Mar 2014 03:27:58 +0000 (13:27 +1000)
commit89087453d412f26224203bc3549d86c4729af683
tree13b4b3063c3d0b1e0cb70a227dba3d3211aa3417
parentf42935ec1d3286f3644fc39a4f437a19e966e3bb
Fix a bunch of little things from the previous changeset.

* usr/lib/pkgusr/chgrp: Fix shell quoting.
Better test for GIDs vs names

* usr/lib/pkgusr/chmod: Fix shell quoting.
Fix inf-loop in symbol->octal conversion.

* usr/lib/pkgusr/chown: Fix shell quoting.
Fix logic in user test.
Better tests for UID/GID vs names.

* usr/lib/pkgusr/install: Re-factor getopts cmdline parsing.
(_dirs): Use $pristinecmd instead of $@,
exit if not creating directory.
(_leading_dirs): Removed, not needed.
(_perms): Better test for symbol vs octal.
Call /bin/chmod directly in the hack-o-matic.
(_group): Better test for GID vs name
(_owner): Better test for UID vs name

* usr/lib/pkgusr/mkdir:  Remove spurious `fi'.
Logged 'install cmd suggestion' had incorrect -g option.

* usr/bin/forall_direntries_from (prune_prefixes): Add
/usr/lib/pkgusr.  Non-pkgusrs are not allowed in this directory
anymore.

* usr/bin/grep_all_regular_files_for (prune_prefixes): Ditto.

* etc/pkgusr/bash_profile (SUPPRESSLOCALEDIR): Typo.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
etc/pkgusr/bash_profile
usr/bin/forall_direntries_from
usr/bin/grep_all_regular_files_for
usr/bin/list_suspicious_files
usr/lib/pkgusr/chgrp
usr/lib/pkgusr/chmod
usr/lib/pkgusr/chown
usr/lib/pkgusr/install
usr/lib/pkgusr/mkdir