summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-23 15:37:39 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-23 15:37:39 +0200
commitf9fb9436ae7a6556d3636f732889bae136a81390 (patch)
tree5b4020629846e5e3b26ea5f628509de121c6ed19 /source3/lib/smbconf
parent44b728958ae9a48bb56591532e5db9867311c1b9 (diff)
downloadsamba-f9fb9436ae7a6556d3636f732889bae136a81390.tar.gz
samba-f9fb9436ae7a6556d3636f732889bae136a81390.tar.bz2
samba-f9fb9436ae7a6556d3636f732889bae136a81390.zip
Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
previously present in Samba 3.
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r--source3/lib/smbconf/smbconf.c2
-rw-r--r--source3/lib/smbconf/smbconf_reg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c
index 1a9b4e07f9..77a438048f 100644
--- a/source3/lib/smbconf/smbconf.c
+++ b/source3/lib/smbconf/smbconf.c
@@ -172,7 +172,7 @@ WERROR smbconf_create_share(struct smbconf_ctx *ctx,
const char *servicename)
{
if ((servicename != NULL) && smbconf_share_exists(ctx, servicename)) {
- return WERR_ALREADY_EXISTS;
+ return WERR_FILE_EXISTS;
}
return ctx->ops->create_share(ctx, servicename);
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index 033f800e2a..1aa345da3c 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -208,7 +208,7 @@ static WERROR smbconf_reg_create_service_key(TALLOC_CTX *mem_ctx,
REG_KEY_WRITE, newkey, &action);
if (W_ERROR_IS_OK(werr) && (action != REG_CREATED_NEW_KEY)) {
DEBUG(10, ("Key '%s' already exists.\n", subkeyname));
- werr = WERR_ALREADY_EXISTS;
+ werr = WERR_FILE_EXISTS;
}
if (!W_ERROR_IS_OK(werr)) {
DEBUG(5, ("Error creating key %s: %s\n",