From: Ján Tomko Date: Thu, 19 Feb 2015 12:32:41 +0000 (+0100) Subject: Fix error messages in virStorageFileGetMetadataFromFD X-Git-Tag: v1.2.13-rc2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6784acc7b02ff88ceb7b2125c6dafcc053daf9c5;p=thirdparty%2Flibvirt.git Fix error messages in virStorageFileGetMetadataFromFD Do not use relPath, it has not been filled by virStorageFileMetadataNew. --- diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 8d3d1f52ac..029fe175f2 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -1030,12 +1030,12 @@ virStorageFileGetMetadataFromFD(const char *path, } if (lseek(fd, 0, SEEK_SET) == (off_t)-1) { - virReportSystemError(errno, _("cannot seek to start of '%s'"), meta->relPath); + virReportSystemError(errno, _("cannot seek to start of '%s'"), meta->path); goto cleanup; } if ((len = virFileReadHeaderFD(fd, len, &buf)) < 0) { - virReportSystemError(errno, _("cannot read header '%s'"), meta->relPath); + virReportSystemError(errno, _("cannot read header '%s'"), meta->path); goto cleanup; }