mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fuse: Skip guestmount --fd test if /dev/fuse does not exist.
When we run guestmount (eg. in Koji) it will fail anyway, so don't run the test.
This commit is contained in:
@@ -62,6 +62,14 @@ main (int argc, char *argv[])
|
||||
exit (77);
|
||||
}
|
||||
|
||||
/* Skip the test if /dev/fuse is not writable, because guestmount
|
||||
* will fail.
|
||||
*/
|
||||
if (access ("/dev/fuse", W_OK) == -1) {
|
||||
perror ("/dev/fuse");
|
||||
exit (77);
|
||||
}
|
||||
|
||||
/* Create the pipe. */
|
||||
if (pipe (pipefd) == -1) {
|
||||
perror ("pipe");
|
||||
|
||||
Reference in New Issue
Block a user