home *** CD-ROM | disk | FTP | other *** search
- 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
- From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
- Newsgroups: comp.protocols.nfs
- Subject: wierd uid src code in pcnfsd v2
- Message-ID: <1992Nov10.160421.13438@awdprime.austin.ibm.com>
- Date: 10 Nov 92 16:04:21 GMT
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Organization: IBM AWD, Austin
- Lines: 36
-
- what is the deal w/ this routine?
- y is it unreasonable to have a uid outside of the range 101-60002?
-
- on aix for example, uid's are LONG, so they can go up to 4gazillion
- or whatever. what's the deal?
-
-
- /*
- ** val_uid(u)
- **
- ** Return non-zero if the uid is legal - within range
- ** and zero otherwise.
- **
- ** If uid_range is NULL, check for 101-60002. Otherwise
- ** check against ranges.
- */
- int
- val_uid(u)
- int u;
- {
- int i;
-
- if(uidrsize == 0)
- return(u >= 101 && u <= 60002);
-
- for (i = 0; i < uidrsize; i++)
- if (u >= uidrlo[i] && u <= uidrhi[i])
- return(1);
- return(0);
- }
-
- --
- --
- curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality
- My views are unrelated to those of IBM | Austin, TX
- - FICA isn't a retirement plan. Your money's already spent. You'll get zilch.-
-