From fac8ca52ade6e490eea3cf3d0fc98287da321c13 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 26 Mar 2010 17:09:58 -0700 Subject: Fix bug #7240 - Net usershare is not case sensitive. Updates usershare files in a backwards compatible way. I don't intend to back port this fix to 3.5.x as it depends on a version upgrade in the share_info.tdb share security database. Jeremy. --- source3/include/proto.h | 1 + source3/include/smb.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index ecb29618ae..7cc211b05a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4318,6 +4318,7 @@ enum usershare_err parse_usershare_file(TALLOC_CTX *ctx, int numlines, char **pp_sharepath, char **pp_comment, + char **pp_cp_share_name, SEC_DESC **ppsd, bool *pallow_guest); int load_usershare_service(const char *servicename); diff --git a/source3/include/smb.h b/source3/include/smb.h index 52b9843156..751f3a46a4 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1921,7 +1921,9 @@ enum usershare_err { USERSHARE_PATH_IS_DENIED, USERSHARE_PATH_NOT_ALLOWED, USERSHARE_PATH_NOT_DIRECTORY, - USERSHARE_POSIX_ERR + USERSHARE_POSIX_ERR, + USERSHARE_MALFORMED_SHARENAME_DEF, + USERSHARE_BAD_SHARENAME }; /* Different reasons for closing a file. */ -- cgit