Nigel Tamplin reported getting a seg fault in xfsrestore when a path
name was too long.
Based on the surrounding code, I'm sure strerror(errno) was the
intended final argument to this call. This bug has been there
since the code was first committed.
Signed-off-by: Alex Elder <elder@xxxxxxxxxxx>
Reported-by: Nigel Tamplin <ntamplin@xxxxxxxxxxxxxxx>
restore/content.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/restore/content.c b/restore/content.c
index edd00ed..4e55a76 100644
@@ -7799,7 +7799,8 @@ restore_spec( filehdr_t *fhdrp, rv_t *rvp, char
"%s ino %llu %s: %s: discarding\n"),
- path );
+ strerror( errno ));
( void )close( sockfd );