diff: Remove bogus perror when guestfs_* functions return error.

Neither guestfs_copy_statns nor guestfs_copy_xattr_list set errno, so
it's wrong to call perror(3) here.
This commit is contained in:
Richard W.M. Jones
2017-09-25 19:25:20 +01:00
parent 4bbf8a321f
commit ecef1708a5

View File

@@ -485,15 +485,11 @@ visit_entry (const char *dir, const char *name,
* free them after we return.
*/
stat = guestfs_copy_statns (stat_orig);
if (stat == NULL) {
perror ("guestfs_copy_stat");
if (stat == NULL)
goto error;
}
xattrs = guestfs_copy_xattr_list (xattrs_orig);
if (xattrs == NULL) {
perror ("guestfs_copy_xattr_list");
if (xattrs == NULL)
goto error;
}
if (checksum && is_reg (stat->st_mode)) {
csum = guestfs_checksum (t->g, checksum, path);