2 * Replacement for the passwd related functions for micro ports.
3 * Copyright (c) 1996 Markku Rossi.
5 * Author: Markku Rossi <mtr@iki.fi>
9 * This file is part of GNU Enscript.
11 * Enscript is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
16 * Enscript is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with Enscript. If not, see <http://www.gnu.org/licenses/>.
38 static struct passwd dummy_passwd =
40 "dos", "Dos User", "/home",
53 static char userName[32];
54 DWORD userNameLen = sizeof (userName);
56 if (GetUserName (userName, &userNameLen))
58 dummy_passwd.pw_name = userName;
59 dummy_passwd.pw_gecos = userName;
68 #endif /* not WIN32 */