Version: (using KDE KDE 3.5.4) Installed from: Ubuntu Packages Because of an incorrect regular expression, sharing files below e.g. /home/mt/ isn't allowed with the error message "invalid mount point". The bug lies in the file /usr/bin/fileshareset in line 121, where the two dots are not escaped and so meaning "two arbitrary chars" instead of "..".
Created attachment 17654 [details] This patch fixes the problem Patch against KDE 3.5.4, corrects the regular expression.
SVN commit 581632 by kling: Fixed an issue with two-letter directories being mistaken for '..' and therefore denied. Thanks to Marcus Trautwig for the patch. BUG: 133677 M +1 -1 fileshareset --- branches/KDE/3.5/kdelibs/kio/misc/fileshareset #581631:581632 @@ -118,7 +118,7 @@ local ($_) = @_; my $ok = 1; $ok &&= m|^/|; - $ok &&= !m|/../|; + $ok &&= !m|/\.\./|; $ok &&= !m|[\0\n\r]|; $ok &&= -d $_; $ok &&= own($_);
SVN commit 581634 by kling: Fixed an issue with two-letter directories being mistaken for '..' and therefore denied. Thanks to Marcus Trautwig for the patch. CCBUG: 133677 M +1 -1 fileshareset --- trunk/KDE/kdelibs/kio/misc/fileshareset #581633:581634 @@ -118,7 +118,7 @@ local ($_) = @_; my $ok = 1; $ok &&= m|^/|; - $ok &&= !m|/../|; + $ok &&= !m|/\.\./|; $ok &&= !m|[\0\n\r]|; $ok &&= -d $_; $ok &&= own($_);