Bug 5536

Summary: invalid EIO and EPERM when opening files
Product: ThinLinc Reporter: Pierre Ossman <ossman>
Component: Local drive redirectionAssignee: Peter Åstrand <astrand>
Status: NEW ---    
Severity: Normal CC: ossman
Priority: P2    
Version: pre-1.0   
Target Milestone: MediumPrio   
Hardware: PC   
OS: Unknown   
Acceptance Criteria:

Description Pierre Ossman cendio 2015-05-19 16:45:43 CEST
Seen on the SLETC Wyse when using a usb stick.

NTFS on the stick:

 cp foo ~/thindrives/usbstorage-0 => EIO
 cp foo ~/thindrives/usbstorage-0 => EPERM
 echo foo > ~/thindrives/usbstorage-0/bar => OK
 echo foo > ~/thindrives/usbstorage-0/bar => EPERM

i.e. the behaviour changes depending on if the target file exists or not.

With FAT on the stick it is only cp that fails, when the target doesn't exist:

 cp foo ~/thindrives/usbstorage-0 => EPERM
 cp foo ~/thindrives/usbstorage-0 => OK

Reminds me a bit of bug 4592.

No problems accessing the files locally on the terminal.