]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pysmbd: Silence a signed/unsigned warning
authorVolker Lendecke <vl@samba.org>
Tue, 23 Dec 2025 11:12:54 +0000 (12:12 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 7 Jan 2026 09:57:40 +0000 (09:57 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/pysmbd.c

index 5b599d85ef81572c77c8a2f411c451d873b42423..d6f937b20c306bf5aa232b74bf4fd011e84ac91a 100644 (file)
@@ -461,7 +461,7 @@ static SMB_ACL_T make_simple_acl(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
-       if (gid != -1) {
+       if (gid != (gid_t)-1) {
                if (sys_acl_create_entry(&acl, &entry) != 0) {
                        TALLOC_FREE(acl);
                        return NULL;