appliance: Add xfsprogs to list of packages
[libguestfs.git] / daemon / checksum.c
index d12413f..2423265 100644 (file)
@@ -28,7 +28,7 @@
 #include "actions.h"
 
 char *
-do_checksum (char *csumtype, char *path)
+do_checksum (const char *csumtype, const char *path)
 {
   const char *program;
   char *buf;
@@ -36,9 +36,6 @@ do_checksum (char *csumtype, char *path)
   int r;
   int len;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, return NULL);
-
   if (strcasecmp (csumtype, "crc") == 0)
     program = "cksum";
   else if (strcasecmp (csumtype, "md5") == 0)