*** src-o/nt.c Tue Dec 12 19:36:35 1995 --- src/nt.c Wed Jan 03 20:37:35 1996 *************** *** 628,640 **** int getuid () { ! return 0; } int geteuid () { ! return 0; } /* Remove all CR's that are followed by a LF. --- 628,654 ---- int getuid () { ! char buffer[256]; ! int size = 256; ! ! if (!GetUserName (buffer, &size)) ! /* Assume all powers upon failure. */ ! return 0; ! ! if (!stricmp ("administrator", buffer)) ! return 0; ! else ! /* A complete fabrication...is there anything to base it on? */ ! return 123; } int geteuid () { ! /* I could imagine arguing for checking to see whether the user is ! in the Administrators group and returning a UID of 0 for that ! case, but I don't know how wise that would be in the long run. */ ! return getuid (); } /* Remove all CR's that are followed by a LF.