Documentation of arguments of restore_config() implies that multiple arguments are supported. In reality: - If configuration file scheme (e.g. ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PF}) is a regular file, then only the first argument of restore_config() is actually used. - If configuration file scheme (e.g. ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PF}) is a directory, then no arguments are actually used, except that the first argument is mistakenly used in die() message. Contents of this directory are copied to ${PWD}, not $1, but if copying fails then die() message mentions $1.