git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: temporarily disable failing "syntax-check" rules
[libguestfs.git]
/
daemon
/
augeas.c
diff --git
a/daemon/augeas.c
b/daemon/augeas.c
index
f75a1d6
..
79d41a4
100644
(file)
--- a/
daemon/augeas.c
+++ b/
daemon/augeas.c
@@
-53,7
+53,6
@@
do_aug_init (char *root, int flags)
{
#ifdef HAVE_AUGEAS
char *buf;
{
#ifdef HAVE_AUGEAS
char *buf;
- int len;
NEED_ROOT (-1);
ABS_PATH (root, -1);
NEED_ROOT (-1);
ABS_PATH (root, -1);
@@
-63,13
+62,11
@@
do_aug_init (char *root, int flags)
aug = NULL;
}
aug = NULL;
}
- len = strlen (root) + 9;
- buf = malloc (len);
+ buf = sysroot_path (root);
if (!buf) {
reply_with_perror ("malloc");
return -1;
}
if (!buf) {
reply_with_perror ("malloc");
return -1;
}
- snprintf (buf, len, "/sysroot%s", root);
aug = aug_init (buf, NULL, flags);
free (buf);
aug = aug_init (buf, NULL, flags);
free (buf);