https://bugs.kde.org/show_bug.cgi?id=455959
Bug ID: 455959
Summary: ksambashare.cpp -- parse() fails on output of "net
usershare info"
Product: frameworks-kio
Version: 5.95.0
Platform: Gentoo Packages
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 150167
--> https://bugs.kde.org/attachment.cgi?id=150167&action=edit
Patch to remove trailing comma of "net usershare info" output
SUMMARY
At least Samba version >=4.14.12 and <=4.16.2 generate a trailing comma with
"net usershare info" like so:
claus@anaxagoras /usr/local/storage/a/samba/public $ net usershare info
[scanbox]
usershare_acl=ANAXAGORAS\claus:R,Everyone:R,ANAXAGORAS\scanner-upload:F,
OTOH, "net usershare add" does not accept a trailing comma as input and
generates an error message:
net usershare add: malformed acl (missing ':').
STEPS TO REPRODUCE
1. Use the sharing dialog for some local file with an existing share
2. Do something which triggers an error (e.g. use an unsupported user-name like
"foo-bar", see #455956 )
3. Try to apply the changes. The error messages of e.g. Dolphin will show
something like
"malformed acl (missing ':')." and the ACLs are also not updated.
OBSERVED RESULT
Saving ACLs fails.
EXPECTED RESULT
Saving ACLs works.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo / X11
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.18.6
ADDITIONAL INFORMATION
The bug is still present in the master branch.
--
You are receiving this mail because:
You are watching all bug changes.