Package: nautilus-share
Version: 0.7.3-2
Severity: normal

Dear Maintainer,

nautilus-share uses the "net usershare" command with the "-l"
(lowercase L) parameter. Since samba 4.15.0[1], this has been removed
and now the long version, "--long", must be used instead.

Here is the patch we applied to Ubuntu:

Description: update net usershare command-line for samba 4.15.x
 Samba 4.15.x removed[1] the short "-l" option for net commands, requiring the
 "--long" alternative.
 .
 1. https://www.samba.org/samba/history/samba-4.15.0.html
Author: Andreas Hasenack <andr...@canonical.com>
Bug-Ubuntu: 
https://bugs.launchpad.net/ubuntu/+source/nautilus-share/+bug/1967245
Forwarded: no, upstream git repo is archived
Last-Update: 2022-04-04

--- a/src/shares.c
+++ b/src/shares.c
@@ -623,7 +623,7 @@
         return FALSE;

     argv[0] = "add";
-    argv[1] = "-l";
+    argv[1] = "--long";
     argv[2] = info->share_name;
     argv[3] = info->path;
     argv[4] = info->comment;





1. https://www.samba.org/samba/history/samba-4.15.0.html

Reply via email to