salvager: fix filesystem path truncation
authorMichael Meffie <mmeffie@sinenomine.net>
Tue, 20 Sep 2011 20:21:50 +0000 (16:21 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 20 Sep 2011 21:01:55 +0000 (14:01 -0700)
commit1d6dfa5806b171c6f306508396a06302d3d9c42a
tree9ff0f0165f197d42eda0b66b658abaf52709be4b
parent0cb10104f5af73614e6b7673d3711ddbc3f3a866
salvager: fix filesystem path truncation

Fix filesystem path truncation for vice partitions beyond /vicepz.

Commit 3d7388b7 moved the filesystem path to a fixed size buffer,
however the path of the filesystem to be salvaged is truncated for
partitions with two character ids (e.g. /vicepaa), in which case
the salvager will salvager the wrong partition, or abort if the
truncated path is not present.

Change-Id: Iadf45268514ef5045a4481950f213abecbb20b33
Reviewed-on: http://gerrit.openafs.org/5469
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/vol/vol-salvage.c