From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: ifup-aliases abort processing when encounter a file ended in "~" (backup files left in the /etc/sysconfig/network-script) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. cd /etc/sysconfig/network-scripts 2. cp ifcfg-eth0:0 ifcfg-eth0:0~ 3. ./ifup-aliases eth0 Actual Results: ifup-aliases stop processing alias after found the first *~ file. So, ifup stop processing and /etc/rc.d/init.d/network stop processing. Expected Results: ifup-aliases must skip backup files Additional info: A little change can solve this problems. In ifup-aliases, line 269, where it says for FILE in ifcfg-${parent_device}:* ; do I changed it to: for FILE in ifcfg-${parent_device}:*[!~] ; do and problem solved
I agree that backup files should be filtered out. This is something that, from my experience, Red Hat tires to do. For example, the log rotator script is smart enough to ignore .rpmsave files. I've created a patch that fixes this on both important shell globs in the source code. The first looking for ifcfg-eth0:* aliases and the second looking for ifcfg-eth0-range* aliases.
Created attachment 46500 [details] Patch to prevent reading configuration from backup files
Fixed in 6.63-1.