29 lines
942 B
Diff
29 lines
942 B
Diff
From 6c713a0855f6f2f144ebc2240fc4ec0e3470aacc Mon Sep 17 00:00:00 2001
|
|
From: David Lutterkort <lutter@redhat.com>
|
|
Date: Tue, 29 Jun 2010 14:13:13 -0700
|
|
Subject: [PATCH 2/9] * src/augeas.c (aug_init): create /augeas/variables on startup
|
|
|
|
---
|
|
src/augeas.c | 5 +++--
|
|
1 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/augeas.c b/src/augeas.c
|
|
index 7b51a77..9ca26b6 100644
|
|
--- a/src/augeas.c
|
|
+++ b/src/augeas.c
|
|
@@ -406,8 +406,9 @@ struct augeas *aug_init(const char *root, const char *loadpath,
|
|
} else {
|
|
aug_set(result, AUGEAS_META_SAVE_MODE, AUG_SAVE_OVERWRITE_TEXT);
|
|
}
|
|
- /* Make sure we always have /files */
|
|
- aug_set(result, AUGEAS_FILES_TREE, NULL);
|
|
+ /* Make sure we always have /files and /augeas/variables */
|
|
+ tree_path_cr(result->origin, 1, s_files);
|
|
+ tree_path_cr(result->origin, 2, s_augeas, s_vars);
|
|
|
|
if (interpreter_init(result) == -1)
|
|
goto error;
|
|
--
|
|
1.6.6.1
|
|
|