Bug 13151 - Freed frame error from "net usershare add"
Summary: Freed frame error from "net usershare add"
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.6.8
Hardware: Other Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL: https://www.raspberrypi.org/forums/vi...
Depends on:
Reported: 2017-11-18 18:08 UTC by Frank Breitling
Modified: 2021-02-11 21:51 UTC (History)
2 users (show)

See Also:

Proposed git-am fix for master. (1.06 KB, patch)
2017-11-21 00:14 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Breitling 2017-11-18 18:08:13 UTC
When using the net Tool for administration of Samba and remote CIFS servers, I get this error:

raspberrypi:~$ net usershare add
net usershare add [-l|--long] <sharename> <path> [<comment>] [<acl>] [<guest_ok=[y|n]>]
        Adds the specified share name for this user.
        <sharename> is the new share name.
        <path> is the path on the filesystem to export.
        <comment> is the optional comment for the new share.
        <acl> is an optional share acl in the format "DOMAIN\name:X,DOMAIN\name:X,...."
        <guest_ok=y> if present sets "guest ok = yes" on this usershare.
                "X" represents a permission and can be any one of the characters f, r or d
                where "f" means full control, "r" means read-only, "d" means deny access.
                name may be a domain user or group. For local users use the local server name instead of "DOMAIN"
                The default acl is "Everyone:r" which allows everyone read-only access.
        Add -l or --long to print the info on the newly added share.
Freed frame ../source3/utils/net.c:787, expected ../source3/utils/net_usershare.c:625.

It seems like a package error. I have installed the package

Samba version (2:4.5.12+dfsg-2)

on Raspbian GNU/Linux 9.1 (stretch).

raspberrypi:~$ net -V
Version 4.5.12-Debian

For further details see

Comment 1 Jeremy Allison 2017-11-21 00:14:25 UTC
Created attachment 13797 [details]
Proposed git-am fix for master.
Comment 2 Björn Jacke 2021-02-11 21:51:21 UTC
757a120fc4c659047bd6a1175b24f0673630ce2d in master since long, closing.