sharesec: Remove error message for unmarshall_sec_desc failure
authorChristof Schmitt <cs@samba.org>
Tue, 30 Jun 2015 23:15:57 +0000 (01:15 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 6 Jul 2015 18:19:12 +0000 (20:19 +0200)
In a cluster setup, running sharesec -D results in an empty record that
triggers this message. The situation is correctly handled in the code
(unmarshall_sec_desc fails and sharesec uses the default), so simply
remove the message in this case.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/sharesec.c

index dbe5de7a17bcd0fff6779e6aab13b125e1cf200f..d790b0832181b02146cfc2732c627a7dd6ad5373 100644 (file)
@@ -331,8 +331,6 @@ struct security_descriptor *get_share_security( TALLOC_CTX *ctx, const char *ser
        TALLOC_FREE(data.dptr);
 
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, ("unmarshall_sec_desc failed: %s\n",
-                         nt_errstr(status)));
                return get_share_security_default(ctx, psize,
                                                  SEC_RIGHTS_DIR_ALL);
        }