File gphotofs-fixes.patch of Package gphotofs
--- gphotofs.c +++ gphotofs.c @@ -21,6 +21,7 @@ #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> @@ -757,7 +758,7 @@ "'serial:' or 'usb:')."), sPort); g_fprintf(stderr, "\n"); goto error; - } else if (p < 0) { + } else if (i < GP_OK) { ret = i; goto error; } else {