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

--- Comment #4 from Peter <[email protected]> ---
> Which specific Linux version are you using?
OS: CachyOS x86_64
Kernel: Linux 7.1.5-1-cachyos
DE: KDE Plasma 6.7.3
> Could it be that you have enabled security features on your system that cause 
> applications to run in a sandbox of some kind?
I do not think so. I am running the system package
```
❯ pacman -Qs digikam
local/digikam 9.1.0-6.1
```
I don't know of any changes to security features deviating from the CachyOS
defaults.
```
❯ cat /sys/kernel/security/lsm

capability,landlock,lockdown,yama,bpf
```


I attemted to diagnose if anything is wrong with the mount or permissions but
did not find an issue there:

```
❯ findmnt -T /mnt/photos-edit/digikam-library -o TARGET,SOURCE,FSTYPE,OPTIONS
TARGET SOURCE FSTYPE OPTIONS
/mnt/photos-edit
       //nas.local/photos-edit
              cifs  
rw,relatime,vers=3.1.1,cache=strict,upcall_target=app,username=Peter,uid=1000,forceuid,gid=1000,forcegid,addr=2003:0
```

and i could also confirm EOENT can be reproduced outside of digikam:

```
❯ python3 -c 'import os,sys; os.open(sys.argv[1], os.O_RDWR|os.O_TMPFILE,
0o600); print("ok")' "/mnt/photos-edit/digikam-library/test-export"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import os,sys; os.open(sys.argv[1], os.O_RDWR|os.O_TMPFILE, 0o600);
print("ok")
                   ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/mnt/photos-edit/digikam-library/test-export'

~
❯ python3 -c 'import os,sys; os.open(sys.argv[1], os.O_RDWR|os.O_TMPFILE,
0o600); print("ok")' /home/peet/digikam-library
ok

~
❯ python3 -c 'import os,sys; os.open(sys.argv[1], os.O_RDWR|os.O_TMPFILE,
0o600); print("ok")' "/mnt/photos-edit/digikam-library/test-move"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import os,sys; os.open(sys.argv[1], os.O_RDWR|os.O_TMPFILE, 0o600);
print("ok")
                   ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/mnt/photos-edit/digikam-library/test-move'

~
❯ ls /mnt/photos-edit/digikam-library/test-move
.rw-r--r-- 16M peet 29 Jul 16:07  DSCF7876.JPG

~
❯ python3 -c 'import os,sys; os.open(sys.argv[1], os.O_RDWR|os.O_TMPFILE,
0o600); print("ok")' /home/peet/digikam-library
ok
```
Which is expected bahviour given the filesystem and leads me to believe that it
is not a misconfiguration of the remote share but rather the fallback in
digikam not working as intended?

Peter

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

Reply via email to