Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Augeas lense fails to parse Fedora 36's /etc/services file #772

Open
cthorn42 opened this issue Sep 6, 2022 · 1 comment
Open

Augeas lense fails to parse Fedora 36's /etc/services file #772

cthorn42 opened this issue Sep 6, 2022 · 1 comment

Comments

@cthorn42
Copy link

cthorn42 commented Sep 6, 2022

The latest releases of Fedora 36 has an issue with the /etc/services file. Here is the output of augtool print /augeas//error:

/augeas/files/etc/services/error = "parse_failed"
/augeas/files/etc/services/error/pos = "563493"
/augeas/files/etc/services/error/line = "9472"
/augeas/files/etc/services/error/char = "36"
/augeas/files/etc/services/error/lens = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/services.aug:87.10-.39:"
/augeas/files/etc/services/error/lens/last_matched = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/services.aug:82.44-.64:"
/augeas/files/etc/services/error/lens/next_not_matched = "/opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:111.22-.67:"
/augeas/files/etc/services/error/message = "Iterated lens matched less than it should"

And here is line 9472 and 9473 from the /etc/services file:

ircu-3          6667/tcp        ircd,ircu3    # IRCU
ircu-3          6667/udp        ircd,ircu3    # IRCU

The above has a misconfigured alias, ircd,ircu3. The rule alias is defined here: https://man7.org/linux/man-pages/man5/services.5.html, and clearly states it should be a spaced or tabbed.

This should hopefully get fixed upstream in the Fedora product, I am noting this as an issue here for reference.

jollaitbot pushed a commit to sailfishos-mirror/setup that referenced this issue Sep 9, 2022
According to the man page for services: https://man7.org/linux/man-pages/man5/services.5.html,
The alias is an optional setting that is a space or tab seperated list. In a previous PR that
changed the services file there was a change introduced that added an alias but had commas
seperating the aliases.
This small change breaks some things downstream, example for this is the Augeas tool breaks
when attempting to read the services file if there is an comma in the alias, I have created
an issue for that here: hercules-team/augeas#772
This PR simply switches out the commas for a space.
@cthorn42
Copy link
Author

cthorn42 commented Oct 5, 2022

This is fixed in the setup package in Fedora version 2.14.2. That is currently in the 'rawhide' stream of Fedora. Not sure if it will ever get added to the 36 or 37 versions of Fedora, but looks for certain will be in Fedora 38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant