- NEED_ROOT (return NULL);
- ABS_PATH (path, return NULL);
-
- if (strcasecmp (csumtype, "crc") == 0)
- program = "cksum";
- else if (strcasecmp (csumtype, "md5") == 0)
- program = "md5sum";
- else if (strcasecmp (csumtype, "sha1") == 0)
- program = "sha1sum";
- else if (strcasecmp (csumtype, "sha224") == 0)
- program = "sha224sum";
- else if (strcasecmp (csumtype, "sha256") == 0)
- program = "sha256sum";
- else if (strcasecmp (csumtype, "sha384") == 0)
- program = "sha384sum";
- else if (strcasecmp (csumtype, "sha512") == 0)
- program = "sha512sum";
- else {
- reply_with_error ("unknown checksum type, expecting crc|md5|sha1|sha224|sha256|sha384|sha512");