Allow for contiguous limit specifications. * src/cfgram.y (resource_limits): Use collect_limits to parse contiguous limit specifications. * src/limits.c (parse_limits): Fix parsing of the legacy limits specification.
Security of chroots. Improve security by calling chdir("/") immediately after chroot(), in order to release any old directory handle, thus making references to the chroot external directories impossible.
Duplicate use of symbol 'base_name'. Some source files in the directory 'src/' are using a string variable 'base_name'. At the same time the directory 'gnu/' uses the very same identifier as a function. It is expected that the linker will cause some indeterminism in choosing which of these references to prefer at linking time. To avoid this randomness, the string variable is renamed.
Observe that 'src/rlopt.h' and 'src/rwopt.h' are generated by upstream's release process from 'src/rlopt.opt' and 'src/rwopt.opt', respectively. All of them are patched for better consistency.
Use sensible mode flags in fdopen(). Remove an annoying carrage return that only makes the report look uglier. The TCPMUX daemon does not care so late into the message exchange.