You are right, it is dead code for now. The reason why it is there is because this file is just a stub rip-off of the Unix implementation. It is just waiting for the day when the NetWare OS supports UID/GID for running applications and services. On the NetWare OS applications and services don't run as a user, they just run. Therefore the underlying APIs like getuid(), getgid() and getpwnam() don't exist on NetWare. Even if they did, they wouldn't return anything useful. So for now, this is just a stub implementation.
Brad >>> Garrett Rooney <[EMAIL PROTECTED]> Monday, November 22, 2004 6:43:28 PM >>> I'm even more out of my area here than in win32 land, but it looks like user/netware/userinfo.c has some code that isn't actually being used. Specifically the getpwnam_safe function is statically defined, but never called (and doesn't do anything anyway), and the PWBUF_SIZE define is only used for one of the function arguments in getpwnam_safe. Here's a patch removing the code in question. -garrett