FreeBSD Bugzilla – Attachment 175378 Details for
Bug 212493
/etc/rc.subr's new limits + chdir will cause limits to run on chdir instead of prog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
PATCH fix problem with chdir and limits in rc.subr
rc.subr.diff (text/plain), 856 bytes, created by
Palle Girgensohn
on 2016-10-03 01:42:12 UTC
(
hide
)
Description:
PATCH fix problem with chdir and limits in rc.subr
Filename:
MIME Type:
Creator:
Palle Girgensohn
Created:
2016-10-03 01:42:12 UTC
Size:
856 bytes
patch
obsolete
>Index: etc/rc.subr >=================================================================== >--- etc/rc.subr (revision 306571) >+++ etc/rc.subr (working copy) >@@ -1045,6 +1045,7 @@ > # > check_startmsgs && echo "Starting ${name}." > if [ -n "$_chroot" ]; then >+ _docd="" > _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 >+ _docd="${_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="$_docd limits -C $_login_class $_doit" > > # run the full command > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212493
:
174540
| 175378