Red Hat Bugzilla – Bug 994563
Warning in visudo: cycle in Host_Alias even without cycle
Last modified: 2015-03-02 00:27:59 EST
Description of problem: visudo shows cycle warning for following sudoers: # cat ./sudoers Host_Alias HALIAS1 = host1 Host_Alias HALIAS2 = HALIAS1, host2 Host_Alias HALIAS3 = HALIAS1, HALIAS2 root HALIAS3 = /bin/echo hello Also using -s option it says 'parse error in (null)'. Version-Release number of selected component (if applicable): sudo-1.8.6p3-7.el6 How reproducible: 100% Steps to Reproduce: 1. visudo -cf ./sudoers 2. visudo -csf ./sudoers Actual results: 1. visudo: Warning: cycle in Host_Alias `HALIAS1' ./sudoers: parsed OK 2. visudo: Error: cycle in Host_Alias `HALIAS1' parse error in (null) Expected results: ./sudoers: parsed OK Additional info: sudo-1.7.2p1-28.el5 behaves correctly
This is regression against RHEL-5
Created attachment 784764 [details] proposed patch
Created attachment 784767 [details] proposed patch
Created attachment 784768 [details] proposed patch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1701.html