Ticket #752 (closed malfunction: fixed)
auto-num incrementing on domain change
|Reported by:||zpin||Owned by:||rats|
|Priority:||major||Milestone:||ispCP ω 1.0 - RC3|
|Component:||Backend (Engine)||Version:||ispCP ω nightly build|
The function "dmn_change_httpd_cfg_data" calls "dmn_add_httpd_cfg_data" which in turn calls "add_dmn_suexec_user". This increases the auto-num count every time a domain is changed which results in high uids very quickly.
The attached patch should fix this. It also addresses two other issues:
-$main::cfg_re = '^([\_A-Za-z0-9]+) *= *([^\n\r]*)[\n\r]'; +$main::cfg_re = '^ *([\_A-Za-z0-9]+) *= *([^\n\r]*)[\n\r]';
This makes lines with leading spaces readable in the ispcp.conf file. A bug that prevented my ispCP installation from working after an update from a previous version.
- my $rs = open(F, '<', '/dev/random'); + my $rs = open(F, '<', '/dev/urandom');
This prevents "make install" from bloking in the event that not enough entropy is available to generate random numbers.