From 6f865b719ea0bbd102fb025636017a6d2e16f4e3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 8 Sep 2003 15:35:54 +0000 Subject: ~fix~ calling userdrake in "diskdrake --fileshare" --- perl-install/any.pm | 2 +- perl-install/standalone/diskdrake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/any.pm b/perl-install/any.pm index 45af4d0c3..3f0a2b77e 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -891,7 +891,7 @@ Allowing this will permit users to simply click on \"Share\" in konqueror and na N("The per-user sharing uses the group \"fileshare\". You can use userdrake to add a user to this group.") }, [])) { - if (!fork()) { exec "userdrake" or c::_exit(0) } + exec "userdrake"; #- exec instead of fork&exec so that the root XAUTHORITY is kept valid } } } diff --git a/perl-install/standalone/diskdrake b/perl-install/standalone/diskdrake index 5498fcab8..8ed482c10 100755 --- a/perl-install/standalone/diskdrake +++ b/perl-install/standalone/diskdrake @@ -66,7 +66,7 @@ my $in = 'interactive'->vnew('su'); if ($type eq 'fileshare') { require any; any::fileshare_config($in, ''); - $in->exit(0); + $in->exit(0); #- !! not reached if userdrake is called } my $all_hds = fsedit::get_hds({}, $in); -- cgit v1.2.1