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:
Richard W.M. Jones
2014-05-25 22:28:27 +01:00
parent 2c460ac52f
commit 068455f210

View File

@@ -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");