Bug 46636 - Some issues with quota
Bug#: 46636 Product:  Gentoo Linux Version: 1.4 Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: max@gentoo.org
Component: Applications
URL: 
Summary: Some issues with quota
Keywords:  
Status Whiteboard: 
Opened: 2004-04-02 13:21 0000
Description:   Opened: 2004-04-02 13:21 0000
1) there's a new version (3.11).

2) rpc.quotad --port doesn't bind to the port that is passed in because the port isn't converted to network order.  The following patch fixes this problem (I sent it upstream as well).

--- svc_socket.c        2003-12-01 10:02:39.000000000 -0800
+++ ../quota-tools-3.10-new/svc_socket.c        2004-04-02 11:57:17.000000000 -0800
@@ -72,6 +72,8 @@
                        if (ret == 0 && servp != NULL)
                                port = servp->s_port;
                }
+       } else {
+               port = htons(port);
        }

        if (port) {

3) Should this thing live in sys-fs by chance?

------- Comment #1 From Max Kalika (RETIRED) 2004-04-02 13:30:14 0000 -------
Created an attachment (id=28594) [details]
the patch described in the ebuild

------- Comment #2 From Max Kalika (RETIRED) 2004-04-05 08:49:41 0000 -------
Just got a message from the quota-tools author that the patch was applied
upstream -- should be available in the next version.  What about the other
issues?

------- Comment #3 From SpanKY 2004-10-03 03:32:19 0000 -------
3.12 is now in portage and in sys-fs

------- Comment #4 From SpanKY 2004-10-07 20:19:01 0000 -------
*** Bug 53401 has been marked as a duplicate of this bug. ***