提交 99a53d89 编写于 作者: B Bruce Momjian

Allow pg_id to compile on Win32.

Andrew Dunstan
上级 de8b3b49
......@@ -6,7 +6,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.24 2003/09/07 03:43:53 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.25 2003/10/10 01:34:51 momjian Exp $
*/
#include "postgres_fe.h"
......@@ -38,6 +38,7 @@ main(int argc, char *argv[])
char pw_name[128];
} pass_win32;
struct passwd_win32 *pw = &pass_win32;
unsigned long pwname_size = sizeof(pass_win32.pw_name) - 1;
pw->pw_uid = 1;
#endif
......@@ -113,7 +114,7 @@ main(int argc, char *argv[])
exit(1);
}
GetUserName(pw->pw_name, sizeof(pw->pw_name)-1);
GetUserName(pw->pw_name, &pwname_size);
#endif
if (!limit_user_info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册