Do not unnecessarily mess with the results in find_forced_group()
authorVolker Lendecke <vl@samba.org>
Wed, 7 May 2008 12:25:47 +0000 (14:25 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 10 May 2008 09:17:00 +0000 (11:17 +0200)
(This used to be commit 6d9860d09b54c61625f011c2d56d710aa59d7686)

source3/smbd/service.c

index e3635d45dbf6dc970213de5d9b476874a78a1d03..60d962f3fdf631c85375aa402622f79331743ab2 100644 (file)
@@ -543,9 +543,6 @@ static NTSTATUS find_forced_group(bool force_user,
        bool user_must_be_member = False;
        gid_t gid;
 
-       ZERO_STRUCTP(pgroup_sid);
-       *pgid = (gid_t)-1;
-
        groupname = talloc_strdup(talloc_tos(), lp_force_group(snum));
        if (groupname == NULL) {
                DEBUG(1, ("talloc_strdup failed\n"));