X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Flink.c;h=b27e72c4925c9015cc59c93e550fcca8094ada76;hb=8bc6e9d6a89672bbe1e7469774abe889354deb67;hp=5ea0d39d6db2b43b1b6431fa215c59cccc9d046c;hpb=55a7427b7679e25134cd43488a9f74cb542416ea;p=libguestfs.git diff --git a/daemon/link.c b/daemon/link.c index 5ea0d39..b27e72c 100644 --- a/daemon/link.c +++ b/daemon/link.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -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; }