From: pcanterino <> Date: Sat, 19 Feb 2005 09:42:04 +0000 (+0000) Subject: Now, the root directory must not be a symbolic link. X-Git-Tag: version_2_3_1 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/89df394a2e5dff7d3690e0d55ea3df9f2d5a2ef2?ds=sidebyside;hp=362eeaa190459c405df9a134341fe9923032d16a Now, the root directory must not be a symbolic link. Sorry for this, I really would have liked to allow the root directory to be a symbolic link, but if I would allow this, Dev-Editor would not be able to create files in the root directory. I'm looking for an alternative... --- diff --git a/devedit.pl b/devedit.pl index 54dd3d2..fc49a71 100644 --- a/devedit.pl +++ b/devedit.pl @@ -6,7 +6,7 @@ # Dev-Editor's main program # # Author: Patrick Canterino -# Last modified: 2005-02-14 +# Last modified: 2005-02-19 # use strict; @@ -37,7 +37,7 @@ error_template($config->{'templates'}->{'error'}); # Yes, I'm lazy... # Check if the root directory exists -abort($config->{'errors'}->{'no_root_dir'}) unless(-d $config->{'fileroot'}); +abort($config->{'errors'}->{'no_root_dir'}) unless(-d $config->{'fileroot'} && not -l $config->{'fileroot'}); # Check if we are able to access the root directory