Bug 2655 - Unable to export letter mapped to Samba share
Summary: Unable to export letter mapped to Samba share
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Local drive redirection (show other bugs)
Version: 1.6.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
Keywords: interesting_210
Depends on:
Reported: 2008-01-25 10:59 CET by Peter Åstrand
Modified: 2020-01-03 10:46 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Description Peter Åstrand cendio 2008-01-25 10:59:43 CET
Erik discovered this bug when testing bug 2440, I believe. 

Currently, our unfsd.exe is unable to export a Samba share in Windows. This is due to some strange behaviour of "." and "..": On at least my H: on my laptop, _wreaddir() returns ".." on H: but not on C. This causes unfsd.exe to try backend_lstat() on /h/.., which in turn calls intpath2winpath. This function is clearly incorrect: It returns the empty string, in this case. For "/h/.", the result is "h", which is also incorrect. 

Some unit tests for intpath2winpath might be good. 

If "/h/.." should be translated to "h:\.." or some identifier for the virtual root is an open question. We should probably also take a look at the rest of unfsd, to make sure it handles "." and ".." properly.

Note You need to log in before you can comment on or make changes to this bug.