https://bugs.kde.org/show_bug.cgi?id=441446

            Bug ID: 441446
           Summary: Copying file from FAT32 triggeres endless loop in
                    file.so
           Product: frameworks-kio
           Version: 5.82.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
Copying any file from a FAT32 file system triggers an endless loop at the end
of the copy operation in file.so for me.

STEPS TO REPRODUCE
1. Copy any file from a FAT32 FS to e.g. btrfs, using for example Dolphin to
trigger use of kio / file.so plugin. 
2. Observe endless loop. 

OBSERVED RESULT
Endless loop. 

EXPECTED RESULT
Copy operation to finish. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux, 5.9.11 kernel
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I did some debugging, and found things get stuck in the outer of the two while
loops around here:
https://github.com/KDE/kio/blob/0b4fd24f66656265c531fe1fe97e23e388c7cab2/src/ioslaves/file/file_unix.cpp#L669

Using "gdb", I find that fgetxattr returns -1, and errno is set to EOPNOTSUPP,
so valuelen is -1, when the attribute "security.selinux" is queried. 

The problem appears to be that the comment in:
https://github.com/KDE/kio/blob/0b4fd24f66656265c531fe1fe97e23e388c7cab2/src/ioslaves/file/file_unix.cpp#L676
says "Some other error, skip to the next attribute", but this actually never
happens, since:
https://github.com/KDE/kio/blob/0b4fd24f66656265c531fe1fe97e23e388c7cab2/src/ioslaves/file/file_unix.cpp#L681
jumps back to the beginning of the outer while loop without skipping to the
next key.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to