mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Be careful not to spam ld.so.hints in multi-user case.
Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
This commit is contained in:
parent
ea31e8b2d6
commit
bd002b6bd8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34544
3 changed files with 15 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: config.c,v 1.107 1998/03/09 15:00:43 jkh Exp $
|
||||
* $Id: config.c,v 1.108 1998/03/10 17:24:03 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -510,7 +510,10 @@ configXEnvironment(dialogMenuItem *self)
|
|||
dialog_clear_norefresh();
|
||||
if (!dmenuOpenSimple(&MenuXF86Config, FALSE))
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
systemExecute("/sbin/ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
if (file_readable("/var/run/ld.so.hints"))
|
||||
systemExecute("/sbin/ldconfig -m /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
else
|
||||
systemExecute("/sbin/ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
config = variable_get(VAR_XF86_CONFIG);
|
||||
if (!config)
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: config.c,v 1.107 1998/03/09 15:00:43 jkh Exp $
|
||||
* $Id: config.c,v 1.108 1998/03/10 17:24:03 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -510,7 +510,10 @@ configXEnvironment(dialogMenuItem *self)
|
|||
dialog_clear_norefresh();
|
||||
if (!dmenuOpenSimple(&MenuXF86Config, FALSE))
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
systemExecute("/sbin/ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
if (file_readable("/var/run/ld.so.hints"))
|
||||
systemExecute("/sbin/ldconfig -m /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
else
|
||||
systemExecute("/sbin/ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
config = variable_get(VAR_XF86_CONFIG);
|
||||
if (!config)
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: config.c,v 1.107 1998/03/09 15:00:43 jkh Exp $
|
||||
* $Id: config.c,v 1.108 1998/03/10 17:24:03 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -510,7 +510,10 @@ configXEnvironment(dialogMenuItem *self)
|
|||
dialog_clear_norefresh();
|
||||
if (!dmenuOpenSimple(&MenuXF86Config, FALSE))
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
systemExecute("/sbin/ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
if (file_readable("/var/run/ld.so.hints"))
|
||||
systemExecute("/sbin/ldconfig -m /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
else
|
||||
systemExecute("/sbin/ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib /usr/lib/compat");
|
||||
config = variable_get(VAR_XF86_CONFIG);
|
||||
if (!config)
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
|
|
Loading…
Reference in a new issue