home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / protocol / nfs / 2741 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.4 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!ekhadafi.austin.ibm.com!curt
  2. From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: wierd uid src code in pcnfsd v2
  5. Message-ID: <1992Nov10.160421.13438@awdprime.austin.ibm.com>
  6. Date: 10 Nov 92 16:04:21 GMT
  7. Sender: news@awdprime.austin.ibm.com (USENET News)
  8. Organization: IBM AWD, Austin
  9. Lines: 36
  10.  
  11. what is the deal w/ this routine?
  12. y is it unreasonable to have a uid outside of the range 101-60002?
  13.  
  14. on aix for example, uid's are LONG, so they can go up to 4gazillion
  15. or whatever.  what's the deal?
  16.  
  17.  
  18.  /*
  19.  ** val_uid(u)
  20.  **
  21.  ** Return non-zero if the uid is legal - within range
  22.  ** and zero otherwise.
  23.  **
  24.  ** If uid_range is NULL, check for 101-60002. Otherwise
  25.  ** check against ranges.
  26.  */
  27.  int
  28.  val_uid(u)
  29.  int u;
  30.  {
  31.        int i;
  32.  
  33.        if(uidrsize == 0)
  34.                return(u >= 101 && u <= 60002);
  35.  
  36.        for (i = 0; i < uidrsize; i++)
  37.                if (u >= uidrlo[i] && u <= uidrhi[i])
  38.                        return(1);
  39.        return(0);
  40.  }
  41.  
  42. -- 
  43. --
  44. curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
  45. My views are unrelated to those of IBM     |        Austin, TX
  46. - FICA isn't a retirement plan. Your money's already spent. You'll get zilch.-
  47.