]> git.michaelhowe.org Git - packages/o/openafs.git/commit
salvager: fix filesystem path truncation
authorMichael Meffie <mmeffie@sinenomine.net>
Tue, 20 Sep 2011 20:21:50 +0000 (16:21 -0400)
committerDerrick Brashear <shadow@dementix.org>
Wed, 28 Sep 2011 14:01:56 +0000 (07:01 -0700)
commitb26ed0b20c0c5ff2b06314d28f0df3f1357dd8f9
treebba2cb7cfe4a2b1513fcb876d44bba6414a9e460
parent313bd38a3a8b64e631fd72944b763c25cdb3275b
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.

(cherry picked from commit 1e487f6026fb559638fab256362dbda9d4b4a8b1)

Change-Id: I1f69b580e4db59f9e8dc245348ede176fc1d23c1
Reviewed-on: http://gerrit.openafs.org/5474
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/vol-salvage.c