X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Faugeas.c;h=03cba421184282be46a02faadc60466d3b121bc1;hb=3e9f4af1e1126b1e1f7a93379172dd095dd1b908;hp=36b36b862027e8c7a069d4730f78557664942e96;hpb=d1dd00606d0b5b1430598e5092b017aa15d9ee11;p=libguestfs.git diff --git a/daemon/augeas.c b/daemon/augeas.c index 36b36b8..03cba42 100644 --- a/daemon/augeas.c +++ b/daemon/augeas.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -210,6 +210,26 @@ do_aug_set (const char *path, const char *val) } int +do_aug_clear (const char *path) +{ +#ifdef HAVE_AUGEAS + int r; + + NEED_AUG (-1); + + r = aug_set (aug, path, NULL); + if (r == -1) { + reply_with_error ("Augeas clear failed"); + return -1; + } + + return 0; +#else + NOT_AVAILABLE (-1); +#endif +} + +int do_aug_insert (const char *path, const char *label, int before) { #ifdef HAVE_AUGEAS