From: Richard Jones Date: Wed, 10 Jun 2009 12:27:13 +0000 (+0100) Subject: Fix #2 X-Git-Tag: 1.0.56~15 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=edbb821cb7daefacb7b78821926d751ba40cc232;p=libguestfs.git Fix #2 --- diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 01a7e48..2e83b9f 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -693,7 +693,7 @@ shell_quote (char *out, int len, const char *in) * * See guestfs(3) for the algorithm. * - * We have to open the device and test for ENODEV, because + * We have to open the device and test for ENXIO, because * the device nodes themselves will exist in the appliance. */ int @@ -707,7 +707,7 @@ device_name_translation (char *device, const char *func) return 0; } - if (errno != ENODEV) { + if (errno != ENXIO) { error: reply_with_perror ("%s: %s", func, device); return -1;