Fix bug with numjobs > 1, directory and filename given
authorJens Axboe <jens.axboe@oracle.com>
Fri, 23 Mar 2007 13:26:23 +0000 (14:26 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 23 Mar 2007 13:26:23 +0000 (14:26 +0100)
commitbd0ee748e96338ace7b22b6f0ac1f8934d3385c0
treed5abe895a3891df15a71cc9f152a7d88a7083f27
parentd2f3ac3592a5674fefa082cb439cc72355d2fed0
Fix bug with numjobs > 1, directory and filename given

Reported by gurudas pai <gurudas.pai@oracle.com>

If numjobs > 1, add_job() will append the directory name
several times. Fix this by doing the directory append in
add_file() instead, it cleans up the code as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c
init.c