X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fcmp.c;h=0673403c13532aabf003d6499567a7e39dd72479;hb=d81c0829ea4a99aadb98df37be9543a973269041;hp=56717c55cb5379505f834ad80502d9a9818fccfb;hpb=84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0;p=libguestfs.git diff --git a/daemon/cmp.c b/daemon/cmp.c index 56717c5..0673403 100644 --- a/daemon/cmp.c +++ b/daemon/cmp.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 @@ -34,10 +34,6 @@ do_equal (const char *file1, const char *file2) char *err; int r; - NEED_ROOT (return -1); - ABS_PATH (file1, return -1); - ABS_PATH (file2, return -1); - file1buf = sysroot_path (file1); if (file1buf == NULL) { reply_with_perror ("malloc"); @@ -57,7 +53,7 @@ do_equal (const char *file1, const char *file2) free (file2buf); if (r == -1 || r > 1) { - reply_with_error ("cmp: %s", err); + reply_with_error ("%s", err); free (err); return -1; }