Subject: Re: calendar vs. NIS
To: None <tech-userlevel@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 11/05/2002 10:01:19
> I managed to put together a quick fix to stop the reminder service
> from spamming me. The problem is that MAX_UID is far to large
> (2.147.483.647?) for any "simple" data structure.
> So I assume that no UID is larger than 32767. What is the right way
> to handle this?
Surely that's obvious: use a non-"simple" data structure, rather than
the simple array you use in the patch. (It might be reasonable to use
the array until a UID too large for it is encountered.)
Also, your patch blindly assumes that limit on UIDs, without checking
that the actual UIDs conform. This is a disaster waiting to happen.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B