net groupmap add: Can't lookup UNIX group - PATCH
jra at dp.samba.org
jra at dp.samba.org
Thu May 15 17:22:33 GMT 2003
On Thu, May 15, 2003 at 06:20:18PM +0400, Alex Deiter wrote:
> --- utils/net_groupmap.c.orig Thu May 15 17:00:07 2003
> +++ utils/net_groupmap.c Thu May 15 18:19:13 2003
> @@ -271,8 +271,8 @@
> if (ntcomment[0])
> fstrcpy(ntcomment, "Local Unix group");
>
> - if ( !(gid = nametogid(unixgrp)) ) {
> - d_printf("Can't lookup UNIX group %s\n", ntgroup);
> + if ( (gid = nametogid(unixgrp)) == (gid_t)-1 ) {
> + d_printf("Can't lookup UNIX group %s\n", unixgrp);
> return -1;
> }
>
> Thanks!
Applied. Thanks a lot !
Jeremy.
More information about the samba-technical
mailing list