git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change handling of spaces on Linux kernel command line.
[libguestfs.git]
/
daemon
/
checksum.c
diff --git
a/daemon/checksum.c
b/daemon/checksum.c
index
c06a697
..
2423265
100644
(file)
--- a/
daemon/checksum.c
+++ b/
daemon/checksum.c
@@
-28,7
+28,7
@@
#include "actions.h"
char *
#include "actions.h"
char *
-do_checksum (c
har *csumtype,
char *path)
+do_checksum (c
onst char *csumtype, const
char *path)
{
const char *program;
char *buf;
{
const char *program;
char *buf;
@@
-36,9
+36,6
@@
do_checksum (char *csumtype, char *path)
int r;
int len;
int r;
int len;
- NEED_ROOT (return NULL);
- ABS_PATH (path, return NULL);
-
if (strcasecmp (csumtype, "crc") == 0)
program = "cksum";
else if (strcasecmp (csumtype, "md5") == 0)
if (strcasecmp (csumtype, "crc") == 0)
program = "cksum";
else if (strcasecmp (csumtype, "md5") == 0)