mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
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>
This commit is contained in:
parent
0cb10104f5
commit
1d6dfa5806
@ -233,7 +233,7 @@ FILE *logFile = 0; /* one of {/usr/afs/logs,/vice/file}/SalvageLog */
|
||||
struct SalvInfo {
|
||||
Device fileSysDevice; /**< The device number of the current partition
|
||||
* being salvaged */
|
||||
char fileSysPath[8]; /**< The path of the mounted partition currently
|
||||
char fileSysPath[9]; /**< The path of the mounted partition currently
|
||||
* being salvaged, i.e. the directory containing
|
||||
* the volume headers */
|
||||
char *fileSysPathName; /**< NT needs this to make name pretty log. */
|
||||
|
Loading…
Reference in New Issue
Block a user