delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/04/07:35:56

From: masplund AT cs DOT Helsinki DOT FI (aspa)
Subject: Re: getpwuid
4 May 1997 07:35:56 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.SOL.3.96.970504133841.4918A-100000.cygnus.gnu-win32@hydra>
Reply-To: aspa AT iki DOT fi
Mime-Version: 1.0
X-Sender: masplund AT hydra
Original-To: Ben Elliston <bje AT air DOT net DOT au>
Original-cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <Pine.LNX.3.95.970503203000.1883A-100000@mailhub.air.net.au>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

On Sat, 3 May 1997, Ben Elliston wrote:

> Does anyone know what the state of the implementation of getpwuid is?  Is
> it possible to have the structure filled in by this function completed
> using details from the NT user database?
> 
> I have some code which seems to be getting (null) when doing:
> 
> 	getpwuid(geteuid())
> 
> Any ideas?

i recall successfully using getpwuid() in b17.1. for the above example to
work, you have to have a /etc/passwd entry for the euid running the code.

--
		aspa

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019