View | Details | Raw Unified | Return to bug 145009 | Differences between
and this patch

Collapse All | Expand All

(-)/etc/rc.subr (-1 / +4 lines)
Lines 646-652 Link Here
646
	fi
646
	fi
647
	eval _chdir=\$${name}_chdir	_chroot=\$${name}_chroot \
647
	eval _chdir=\$${name}_chdir	_chroot=\$${name}_chroot \
648
	    _nice=\$${name}_nice	_user=\$${name}_user \
648
	    _nice=\$${name}_nice	_user=\$${name}_user \
649
	    _group=\$${name}_group	_groups=\$${name}_groups
649
	    _group=\$${name}_group	_groups=\$${name}_groups \
650
	    _label=\$${name}_label
650
651
651
	if [ -n "$_user" ]; then	# unset $_user if running as that user
652
	if [ -n "$_user" ]; then	# unset $_user if running as that user
652
		if [ "$_user" = "$(eval $IDCMD)" ]; then
653
		if [ "$_user" = "$(eval $IDCMD)" ]; then
Lines 726-735 Link Here
726
			if [ -n "$_chroot" ]; then
727
			if [ -n "$_chroot" ]; then
727
				_doit="\
728
				_doit="\
728
${_nice:+nice -n $_nice }\
729
${_nice:+nice -n $_nice }\
730
${_label:+setpmac $_label }\
729
chroot ${_user:+-u $_user }${_group:+-g $_group }${_groups:+-G $_groups }\
731
chroot ${_user:+-u $_user }${_group:+-g $_group }${_groups:+-G $_groups }\
730
$_chroot $command $rc_flags $command_args"
732
$_chroot $command $rc_flags $command_args"
731
			else
733
			else
732
				_doit="\
734
				_doit="\
735
${_label:+setpmac $_label }\
733
${_chdir:+cd $_chdir && }\
736
${_chdir:+cd $_chdir && }\
734
$command $rc_flags $command_args"
737
$command $rc_flags $command_args"
735
				if [ -n "$_user" ]; then
738
				if [ -n "$_user" ]; then

Return to bug 145009