Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132669084
D8232.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
815 B
Referenced Files
None
Subscribers
None
D8232.diff
View Options
Index: etc/rc.subr
===================================================================
--- etc/rc.subr
+++ etc/rc.subr
@@ -1045,6 +1045,7 @@
#
check_startmsgs && echo "Starting ${name}."
if [ -n "$_chroot" ]; then
+ _cd=
_doit="\
${_nice:+nice -n $_nice }\
${_fib:+setfib -F $_fib }\
@@ -1052,8 +1053,8 @@
chroot ${_user:+-u $_user }${_group:+-g $_group }${_groups:+-G $_groups }\
$_chroot $command $rc_flags $command_args"
else
+ _cd="${_chdir:+cd $_chdir && }"
_doit="\
-${_chdir:+cd $_chdir && }\
${_fib:+setfib -F $_fib }\
${_env:+env $_env }\
$command $rc_flags $command_args"
@@ -1072,7 +1073,7 @@
fi
# Prepend default limits
- _doit="limits -C $_login_class $_doit"
+ _doit="$_cd limits -C $_login_class $_doit"
# run the full command
#
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 19, 10:11 PM (5 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23944291
Default Alt Text
D8232.diff (815 B)
Attached To
Mode
D8232: Fix bug preventing limits(1) from being applied
Attached
Detach File
Event Timeline
Log In to Comment