From 2bb6b3e50619d10b93a8a2640dd4784e01e97236 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 5 Jun 2002 15:43:49 +0000 Subject: * dtable.cc (handle_to_fn): Check error return value from NtQueryObject first before seeing if name buffer is NULL. * grp.cc (read_etc_group): Fix gcc warning regarding snprintf format. * passwd.cc (read_etc_passwd): Ditto. --- winsup/cygwin/passwd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/passwd.cc') diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index b251264b7..a3df1219e 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -177,7 +177,7 @@ read_etc_passwd () { char strbuf[100]; snprintf (linebuf, sizeof (linebuf), - "%s::%u:%u:%s:%s:/bin/sh", + "%s::%lu:%lu:%s:%s:/bin/sh", cygheap->user.name (), *GetSidSubAuthority(tu, *GetSidSubAuthorityCount(tu) - 1), -- cgit v1.2.3