[Libguestfs] [PATCH 13/67] fish: Fix guestfish so it can recognize sheepdog://... as a valid URI.

Richard W.M. Jones rjones at redhat.com
Sat Aug 24 11:04:13 UTC 2013


From: "Richard W.M. Jones" <rjones at redhat.com>

Because "sheepdog" is 8 characters, it wasn't recognized before.

(cherry picked from commit e3df223a5aed82b7e502bef327d57dd54d98587b)
---
 fish/uri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fish/uri.c b/fish/uri.c
index 9c0892f..4c235e3 100644
--- a/fish/uri.c
+++ b/fish/uri.c
@@ -88,7 +88,7 @@ is_uri (const char *arg)
   if (!p)
     return 0;
 
-  if (p - arg >= 8)
+  if (p - arg > 8)
     return 0;
 
   for (p--; p >= arg; p--) {
-- 
1.8.3.1




More information about the Libguestfs mailing list