@ -16,6 +16,8 @@
* Boston , MA 02110 - 1301 , USA .
* Boston , MA 02110 - 1301 , USA .
* */
* */
# include <config.h>
# include <sys/types.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <sys/stat.h>
# include <unistd.h>
# include <unistd.h>
@ -236,7 +238,7 @@ void KHostName::changeDcop()
: : symlink ( fname . data ( ) , compatLink . data ( ) ) ; // Compatibility link
: : symlink ( fname . data ( ) , compatLink . data ( ) ) ; // Compatibility link
// Update .ICEauthority
// Update .ICEauthority
TQString cmd = " iceauth list " + KProcess : : quote ( " netid= " + oldNetId ) ;
TQString cmd = ICEAUTH_COMMAND " list " + KProcess : : quote ( " netid= " + oldNetId ) ;
FILE * iceFile = popen ( TQFile : : encodeName ( cmd ) , " r " ) ;
FILE * iceFile = popen ( TQFile : : encodeName ( cmd ) , " r " ) ;
if ( ! iceFile )
if ( ! iceFile )
{
{
@ -271,7 +273,7 @@ void KHostName::changeDcop()
if ( netId ! = oldNetId )
if ( netId ! = oldNetId )
continue ;
continue ;
cmd = " iceauth add " ;
cmd = ICEAUTH_COMMAND " add " ;
cmd + = KProcess : : quote ( protName ) ;
cmd + = KProcess : : quote ( protName ) ;
cmd + = " '' " ;
cmd + = " '' " ;
cmd + = KProcess : : quote ( newNetId ) ;
cmd + = KProcess : : quote ( newNetId ) ;
@ -288,7 +290,7 @@ void KHostName::changeDcop()
char * xauthlocalhostname = getenv ( " XAUTHLOCALHOSTNAME " ) ;
char * xauthlocalhostname = getenv ( " XAUTHLOCALHOSTNAME " ) ;
if ( ! xauthlocalhostname | | ! oldNetId . contains ( xauthlocalhostname ) )
if ( ! xauthlocalhostname | | ! oldNetId . contains ( xauthlocalhostname ) )
{
{
TQString cmd = " iceauth remove " + KProcess : : quote ( " netid= " + oldNetId ) ;
TQString cmd = ICEAUTH_COMMAND " remove " + KProcess : : quote ( " netid= " + oldNetId ) ;
system ( TQFile : : encodeName ( cmd ) ) ;
system ( TQFile : : encodeName ( cmd ) ) ;
unlink ( origFName . data ( ) ) ;
unlink ( origFName . data ( ) ) ;
origFName = DCOPClient : : dcopServerFileOld ( oldName ) ; // Compatibility link
origFName = DCOPClient : : dcopServerFileOld ( oldName ) ; // Compatibility link