Michael Gerdts
2001-Apr-26  12:57 UTC
PATCH: 2.2.0 panics with quotas and no rpc.rquotad on NFS server
Yesterday I sent a bug report with a similar subject.  Today I send a
patch.  
Enjoy!
Mike
-------------- next part --------------
*** samba-2.2.0-orig/source/smbd/quotas.c	Thu Apr  5 16:46:17 2001
--- samba-2.2.0/source/smbd/quotas.c	Thu Apr 26 08:46:24 2001
***************
*** 395,402 ****
  	} else
  		*dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  
! 	auth_destroy(clnt->cl_auth);
! 	clnt_destroy(clnt);
  
  	DEBUG(5,("nfs_quotas: For path \"%s\" returning  bsize %.0f,
dfree %.0f, dsize
%.0f\n",args.gqa_pathp,(double)*bsize,(double)*dfree,(double)*dsize));
  
--- 395,404 ----
  	} else
  		*dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  
! 	if ( clnt ) {
! 		auth_destroy(clnt->cl_auth);
! 		clnt_destroy(clnt);
! 	}
  
  	DEBUG(5,("nfs_quotas: For path \"%s\" returning  bsize %.0f,
dfree %.0f, dsize
%.0f\n",args.gqa_pathp,(double)*bsize,(double)*dfree,(double)*dsize));