[Bug 48954] KDE File Sharing doesn't work with 2-character long home directories

Marcus Trautwig Marcus at Trautwig.de
Thu Jun 8 07:18:55 UTC 2006


Public bug reported:

Binary package hint: kdelibs-bin

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 is in the file /usr/bin/fileshareset in line 121, where the two dots are not escaped.

The following patch will fix this issue:
--- /usr/bin/fileshareset       2005-10-10 17:05:43.000000000 +0200
+++ /usr/bin/fileshareset.fixed 2006-06-07 18:55:55.058863000 +0200
@@ -118,7 +118,7 @@
     local ($_) = @_;
     my $ok = 1;
     $ok &&= m|^/|;
-    $ok &&= !m|/../|;
+    $ok &&= !m|/\.\./|;
     $ok &&= !m|[\0\n\r]|;
     $ok &&= -d $_;
     $ok &&= own($_);

** Affects: kdelibs (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
KDE File Sharing doesn't work with 2-character long home directories
https://launchpad.net/bugs/48954




More information about the kubuntu-bugs mailing list