From f66e7afa2807fbc9d43ce69f67eac43806530e8e Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Thu, 27 Apr 2000 08:43:49 +0000 Subject: Add to defaults/rc.conf a new function source_rc_confs which rc scripts may use to source safely overrides in ${rc_conf_files} files. This protects users who insist on the bad practice of copying /etc/defaults/rc.conf to /etc/rc.conf from a recursive loop that exhausts available file descriptors. Several people have expressed interest in breaking this function out into its own shell script. Anyone who wants to embark on such an undertaking would do well to study the attributed PR. PR: 17595 Reported by: adrian Submitted by: Doug Barton --- etc/rc.firewall | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/rc.firewall') diff --git a/etc/rc.firewall b/etc/rc.firewall index 37428808e7a2..a56cdf6e81b2 100644 --- a/etc/rc.firewall +++ b/etc/rc.firewall @@ -5,6 +5,7 @@ # Suck in the configuration variables. if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf + source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi -- cgit v1.3