mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
tail: check the return value pf guestfs_set_pgroup
It is done when creating the handle, so do it also when duplicating the handle.
This commit is contained in:
@@ -495,7 +495,10 @@ reopen_handle (void)
|
||||
|
||||
guestfs_set_verbose (g2, guestfs_get_verbose (g));
|
||||
guestfs_set_trace (g2, guestfs_get_trace (g));
|
||||
guestfs_set_pgroup (g2, guestfs_get_pgroup (g));
|
||||
if (guestfs_set_pgroup (g2, guestfs_get_pgroup (g)) == -1) {
|
||||
perror ("guestfs_set_pgroup");
|
||||
return -1;
|
||||
}
|
||||
|
||||
guestfs_close (g);
|
||||
g = g2;
|
||||
|
||||
Reference in New Issue
Block a user