Closed stromnet closed 9 years ago
ping @lutter
Just tested, on Debian 7.7 with libaugeas 0.10.0-1 it does not occur, and with manually built 1.3.0 it does not occur either.
Side note: This issue was found after trying to re-create an situation where python-augeas sometimes reported success and sometimes reported failure, when trying to aug_save() a file which was not writable by the user running the code.
At first glance, before realising that it was bad permissions that was the cause, it looked very similar to what is described in this post: https://www.redhat.com/archives/augeas-devel/2008-November/msg00000.html . I.e, calling save again "seemed" to work (but most likely did not actually update the file). I was not able to reproduce this on FreeBSD, but found the above instead.
Thanks for the very thorough bug report (and shame on me for not acting on it earlier)
This is no fixed as of 0fb290bd
Hi, I noticed that aug_save will segfault if the target file is not writeable.
FreeBSD 10.0 augeas 1.2.0 (1.3.0 tested too, same issue)
Minimal test case:
Built with:
Executed under GDB: