Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72642 - [nautilus-share] Does not work and the upstream project link shows that the repository is archived.

Attached to Project: Community Packages
Opened by Moshiur Rahman (moshiur_rahman) - Friday, 05 November 2021, 06:21 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 17 November 2021, 22:19 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Balló György (City-busz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

I configured usershare according to the wiki and can use it just fine from the terminal. However using this extension spits out 'usershare error 255' or some error involving how special characters cannot be in the share name (there weren't any special characters, it seems the extension was trying to use the absolute path of the folder as the share name).
The upstream project seems to be abandoned and the extension hasn't been updated in about two years! I think this extension is deprecated.

Steps to reproduce:
Set up usershare and try to share using nautilus.
This task depends upon

Comment by Erwin (megavolt) - Sunday, 23 January 2022, 10:04 GMT
The problem is this parameter: -l

The manpage is faulty: https://www.samba.org/samba/docs/current/man-html/net.8.html

-l now calls -> -l|--log-basename=logdirectory
but not -> -l|--long

$ net usershare add -l share ~/share "comment" "Everyone:R" guest_ok=n
[2021/10/11 01:49:18, 0] ../../lib/util/debug.c:1108(reopen_one_log)
reopen_one_log: Unable to open new log file 'share/log.net': No such file or directory
net usershare add: share name /home/user/share contains invalid characters (any of %<>*?|/\+=;:",)

$ net usershare add --long share ~/share "comment" "Everyone:R" guest_ok=n
[share]
path=/home/user/share
comment=comment
usershare_acl=Everyone:R,
guest_ok=n

The attached patch solve that by replacing -l with --long.
Comment by Mark Wagie (yochananmarqos) - Sunday, 17 July 2022, 20:41 GMT
The patch above works. Since the project is archived, upstream will never fix this. Please apply the patch, it works fine.

Loading...