[Bug 838010] [NEW] /usr/share/augeas/lenses/dist/aliases.aug does not parse valid /etc/aliases file

Jean-Luc Geering 838010 at bugs.launchpad.net
Wed Aug 31 11:39:51 UTC 2011


Public bug reported:

$ lsb_release -rd
Description:	Ubuntu 11.04
Release:	11.04

---

$ apt-cache policy augeas-lenses 
augeas-lenses:
  Installed: 0.8.0-0ubuntu4
  Candidate: 0.8.0-0ubuntu4
  Version table:
 *** 0.8.0-0ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

---

according to man aliases the value of an alias can also be a command:

|command or "|exit 67"

when /etc/aliases contains a line like

somebody: |exit

augeas can parse it:

augtool> print /augeas/files/etc/aliases/
/augeas/files/etc/aliases
/augeas/files/etc/aliases/path = "/files/etc/aliases"
/augeas/files/etc/aliases/mtime = "1314790471"
/augeas/files/etc/aliases/lens = "@Aliases"
/augeas/files/etc/aliases/lens/info = "/usr/share/augeas/lenses/dist/aliases.aug:21.12-.38:"

when the command is enclosed between double quotes, such as this

somebody: "|exit 67"

parsing fails:

augtool> print /augeas/files/etc/aliases/
/augeas/files/etc/aliases
/augeas/files/etc/aliases/path = "/files/etc/aliases"
/augeas/files/etc/aliases/mtime = "1314790678"
/augeas/files/etc/aliases/lens = "@Aliases"
/augeas/files/etc/aliases/lens/info = "/usr/share/augeas/lenses/dist/aliases.aug:21.12-.38:"
/augeas/files/etc/aliases/error = "parse_failed"
/augeas/files/etc/aliases/error/pos = "1619"
/augeas/files/etc/aliases/error/line = "9"
/augeas/files/etc/aliases/error/char = "0"
/augeas/files/etc/aliases/error/lens = "/usr/share/augeas/lenses/dist/aliases.aug:21.12-.38:"
/augeas/files/etc/aliases/error/message = "Iterated lens matched less than it should"

** Affects: augeas (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to augeas in Ubuntu.
https://bugs.launchpad.net/bugs/838010

Title:
  /usr/share/augeas/lenses/dist/aliases.aug does not parse valid
  /etc/aliases file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/augeas/+bug/838010/+subscriptions



More information about the Ubuntu-server-bugs mailing list