bozo: allow start of fs and dafs bnodes with options 34/11934/11
authorMark Vitale <mvitale@sinenomine.net>
Sat, 18 Jul 2015 05:12:51 +0000 (01:12 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 23 Feb 2016 04:23:38 +0000 (23:23 -0500)
commitcc79ca882d180fddadb785f65279c4340210d5d0
treeb185260b9e1df4941bf499e8d74553144e696e6c
parent44349d0694c7a185fae4c55c75cb01196d109a26
bozo: allow start of fs and dafs bnodes with options

fs_create() and dafs_create() issue stat() to verify
the existence of each executable specified in the bnode.
However, commit fda2bc874751ca479365dc6389c0eebb41a0bda1
inadvertently removed the code that stripped any command
arguments before the stat().  Therefore, any bnode that
specifies arguments (e.g. /usr/afs/bin/dafileserver -d 5),
causes the stat() to fail and the bnode will not start.

Rename function AppendExecutableExtension() to a less
"window-ish" name: PathToExecutable().

Modify the Windows version of PathToExecutable()
to properly strip arguments.

Reimplement the Unix macro as function PathToExecutable()
that properly strips arguments.

Change-Id: I04f7ce2afb8211bd12b9063db1335738bff1cc1e
Reviewed-on: http://gerrit.openafs.org/11934
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/bozo/fsbnodeops.c