@ -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 " + TDEProcess : : quote ( " netid= " + oldNetId ) ;
TQString cmd = ICEAUTH_COMMAND " list " + TDEProcess : : 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 + = TDEProcess : : quote ( protName ) ;
cmd + = TDEProcess : : quote ( protName ) ;
cmd + = " '' " ;
cmd + = " '' " ;
cmd + = TDEProcess : : quote ( newNetId ) ;
cmd + = TDEProcess : : 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 " + TDEProcess : : quote ( " netid= " + oldNetId ) ;
TQString cmd = ICEAUTH_COMMAND " remove " + TDEProcess : : 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