mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
examples: Don't ignore return value of chdir.
GCC 4.7.3 whinges about this.
This commit is contained in:
@@ -163,7 +163,8 @@ main (int argc, char *argv[])
|
||||
//FALLTHROUGH
|
||||
}
|
||||
|
||||
chdir ("/");
|
||||
if (chdir ("/") == -1)
|
||||
perror ("chdir: /");
|
||||
guestfs_umount_local (g, GUESTFS_UMOUNT_LOCAL_RETRY, 1, -1);
|
||||
_exit (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user