--- gpilotd/gpilotd.c 2004-06-26 21:35:21.110836648 -0400 +++ gpilotd/gpilotd.c.new 2004-06-26 21:41:14.703082456 -0400 @@ -858,6 +858,11 @@ /* Check /proc/bus/usb/devices for a usb device */ f = fopen ("/proc/bus/usb/devices", "r"); + if (f == NULL) { + g_warning("/proc/bus/usb/devices: %s\n", strerror(errno)); + return FALSE; + } + while (fgets (line, 255, f) != NULL && !visor_exists) { if (line[0] != 'P') continue;