From a361af14cd6fa4e5eded013a0125a2bf983ed7df Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Mon, 29 Aug 2005 15:40:48 +0000 Subject: create dir if it does not exist --- perl-install/standalone/draknfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/standalone/draknfs b/perl-install/standalone/draknfs index 4cf3156c7..851199ced 100644 --- a/perl-install/standalone/draknfs +++ b/perl-install/standalone/draknfs @@ -430,7 +430,7 @@ sub add_modify_entry { my $all_right = join(",", grep { defined $_ } $luserid_toput, $anonu, $anong, $lsync_data, $lsecure_data, $lr_data); my $test_dir = $dir->get_text; - -d $test_dir or err_dialog(N("Error!"), N("Please enter a directory to share.")) and return; + mkdir_p($test_dir) or err_dialog(N("Error!"), N("Can't create this directory.")) and return; my $test_access = $access->child->get_text; $test_access or err_dialog(N("Error!"), N("You must specify hosts access.")) and return; if ($wanted =~ /add/) { -- cgit v1.2.1