diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-04-25 01:11:34 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-04-25 01:11:34 +0000 |
commit | f0359ca925b256bfd14d1ddaee82f8613f8cb104 (patch) | |
tree | e18fc380bfaea2330f53f190408ef0dc9ac0be9a /textproc/augeas/files/patch-src-augeas.c | |
parent | 11f7b6ba53ad4d25e652b9eb0528b9fbfb62ae69 (diff) |
Notes
Diffstat (limited to 'textproc/augeas/files/patch-src-augeas.c')
-rw-r--r-- | textproc/augeas/files/patch-src-augeas.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/textproc/augeas/files/patch-src-augeas.c b/textproc/augeas/files/patch-src-augeas.c new file mode 100644 index 000000000000..1cce522e3dba --- /dev/null +++ b/textproc/augeas/files/patch-src-augeas.c @@ -0,0 +1,17 @@ +index 6919845..2d0a5bd 100644 (file) +--- src/augeas.c ++++ src/augeas.c +@@ -1439,10 +1439,9 @@ int aug_save(struct augeas *aug) { + transform_validate(aug, xfm); + + if (files->dirty) { +- list_for_each(t, files->children) { +- if (tree_save(aug, t, AUGEAS_FILES_TREE) == -1) +- ret = -1; +- } ++ if (tree_save(aug, files->children, AUGEAS_FILES_TREE) == -1) ++ ret = -1; ++ + /* Remove files whose entire subtree was removed. */ + if (meta_files != NULL) { + if (unlink_removed_files(aug, files, meta_files) < 0) |