X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Frealpath.c;h=89f77378d432b05c4bcfe01906ffcd5987847b50;hp=e6c81efbe40ab9bb0fcee810a73fa577c59d8bf1;hb=8022d46e5e2d9c3ab664ace6c9f185976e34dc20;hpb=a86eb0e0d2c67e2153139c681632edc72162b8ed diff --git a/daemon/realpath.c b/daemon/realpath.c index e6c81ef..89f7737 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -56,7 +56,7 @@ do_realpath (const char *path) ret = realpath (path, NULL); CHROOT_OUT; if (ret == NULL) { - reply_with_perror ("realpath"); + reply_with_perror ("%s", path); return NULL; } @@ -98,11 +98,11 @@ do_case_sensitive_path (const char *path) if ((i == 1 && path[0] == '.') || (i == 2 && path[0] == '.' && path[1] == '.')) { - reply_with_error ("case_sensitive_path: path contained . or .. elements"); + reply_with_error ("path contained . or .. elements"); goto error; } if (i > NAME_MAX) { - reply_with_error ("case_sensitive_path: path element too long"); + reply_with_error ("path element too long"); goto error; }