Fix nasty bug in chmod, plus minor fixes.
authorSteve Youngs <steve@sxemacs.org>
Wed, 12 Mar 2014 04:05:17 +0000 (14:05 +1000)
committerSteve Youngs <steve@sxemacs.org>
Wed, 12 Mar 2014 04:05:17 +0000 (14:05 +1000)
commite9ffe1509ba3e58b2bc5a4722aff7501325194f2
treeb00b48cb021fd32d74b3eba35f51bee4f89eb4d5
parent8ad446d5669b34095d0c0dcb099f167339ba55d1
Fix nasty bug in chmod, plus minor fixes.

* usr/lib/pkgusr/chmod: My idea for converting symbolic chmods
into numeric was completely wrong.  Rewrite to work on the
symbolic directly without converting them.

Only reset $@ if it is necessary.

Don't call $DAISY_CHAIN via exec.

* usr/lib/pkgusr/chgrp: Don't use exec.

* usr/lib/pkgusr/chown: Ditto.

* usr/lib/pkgusr/mkdir: Ditto.

* usr/lib/pkgusr/install (_perms): Fix as per chmod.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
usr/lib/pkgusr/chgrp
usr/lib/pkgusr/chmod
usr/lib/pkgusr/chown
usr/lib/pkgusr/install
usr/lib/pkgusr/mkdir