[augeas-devel] [Augeas] #264: Two save events editing via symlink in overwrite mode

Augeas trac at fedorahosted.org
Sat Mar 17 23:10:37 UTC 2012


#264: Two save events editing via symlink in overwrite mode
----------------------+-----------------------
 Reporter:  domcleal  |       Owner:  domcleal
     Type:  defect    |      Status:  new
 Priority:  minor     |   Milestone:  next
Component:  Augeas    |     Version:  devel
 Keywords:            |  Blocked By:
 Blocking:            |
----------------------+-----------------------
 When saving through a symlink at /boot/grub/menu.lst pointing to
 grub.conf, two nodes are created under /augeas/events/saved.

 This only happens in overwrite or noop save modes and only via
 /boot/grub/menu.lst, not /etc/grub.conf (perhaps it only affects symlinks
 with targets in the same directory).

 {{{
 $ ll fakeroot/boot/grub/* fakeroot/etc/grub.conf*
 -rw-rw-r--. 1 dcleal dcleal 1790 Mar 17 22:14 fakeroot/boot/grub/grub.conf
 lrwxrwxrwx. 1 dcleal dcleal    9 Mar 17 22:00 fakeroot/boot/grub/menu.lst
 -> grub.conf
 lrwxrwxrwx. 1 dcleal dcleal   22 Mar 17 22:00 fakeroot/etc/grub.conf ->
 ../boot/grub/grub.conf
 $ augtool -r fakeroot/
 augtool> set /files/boot/grub/menu.lst/timeout 3
 augtool> set /augeas/save newfile
 augtool> save
 Saved 2 file(s)
 augtool> print /augeas/events/saved
 /augeas/events/saved[1] = "/files/boot/grub/menu.lst"
 /augeas/events/saved[2] = "/files/boot/grub/menu.lst"
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/264>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list