| Summary: | File sharing doesn't work with 2-character long home directories | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Marcus Trautwig <Marcus> |
| Component: | general | Assignee: | Stephan Kulow <coolo> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | This patch fixes the problem | ||
|
Description
Marcus Trautwig
2006-09-06 22:53:46 UTC
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($_);
|