Update TODO.
[libguestfs.git] / daemon / link.c
index 5ea0d39..1049640 100644 (file)
@@ -68,7 +68,7 @@ do_readlinklist (const char *path, char *const *names)
   CHROOT_OUT;
 
   if (fd_cwd == -1) {
-    reply_with_perror ("readlinklist: %s", path);
+    reply_with_perror ("open: %s", path);
     return NULL;
   }
 
@@ -76,7 +76,6 @@ do_readlinklist (const char *path, char *const *names)
     r = readlinkat (fd_cwd, names[i], link, sizeof link);
     if (r >= PATH_MAX) {
       reply_with_perror ("readlinkat: returned link is too long");
-      free_strings (ret);
       close (fd_cwd);
       return NULL;
     }