Subject: Ultrix Quota fix for 3.07

From: David L Miller <[email-masked]>
Date: Wed, 14 Jul 1993 14:14:52 -0700 (PDT)

I think this has been posted before, and it will be fixed in the next 
release, but here is a simple fix to make quota checking in Pine work 
under Ultrix:

--
|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing
4545 15tn Ave NE, Seattle WA 98105, USA

-------- Start of diff --------
*** pine3.07/pine/os-unx.c       Thu Jul  9 09:50:46 1992
--- pine3.07a/pine/os-unx.c      Mon Apr  5 10:40:48 1993
***************
*** 622,627 ****
--- 622,628 ----

      dprint(7, (debugfile, "Quota check: UID:%d  stat: %d %x\n",
             getuid(), statx.st_dev, statx.st_dev));
+     memset((void *)&quotax, 0, sizeof(struct dqblk));
      if(quota(Q_GETDLIM, getuid(), statx.st_dev, &quotax) < 0) {
          dprint(5, (debugfile, "Quota failed : %s\n",
                     error_description(errno)));
-------- End of diff --------