=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/login/login.c,v retrieving revision 1.59 retrieving revision 1.60 diff -c -r1.59 -r1.60 *** src/usr.bin/login/login.c 2009/08/31 22:25:43 1.59 --- src/usr.bin/login/login.c 2009/09/05 14:04:38 1.60 *************** *** 1,4 **** ! /* $OpenBSD: login.c,v 1.59 2009/08/31 22:25:43 martynas Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: login.c,v 1.60 2009/09/05 14:04:38 tobias Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- *************** *** 73,79 **** #if 0 static const char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif ! static const char rcsid[] = "$OpenBSD: login.c,v 1.59 2009/08/31 22:25:43 martynas Exp $"; #endif /* not lint */ /* --- 73,79 ---- #if 0 static const char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif ! static const char rcsid[] = "$OpenBSD: login.c,v 1.60 2009/09/05 14:04:38 tobias Exp $"; #endif /* not lint */ /* *************** *** 205,210 **** --- 205,211 ---- warnx("-h option: %s", strerror(EPERM)); quickexit(1); } + free(fqdn); if ((fqdn = strdup(optarg)) == NULL) { warn(NULL); quickexit(1); *************** *** 472,478 **** backoff = (int)login_getcapnum(lc, "login-backoff", 3, 3); /* ! * Turn off the fflag if we have an an invalid user * or we are not root and we are trying to change uids. */ if (!pwd || (uid && uid != pwd->pw_uid)) --- 473,479 ---- backoff = (int)login_getcapnum(lc, "login-backoff", 3, 3); /* ! * Turn off the fflag if we have an invalid user * or we are not root and we are trying to change uids. */ if (!pwd || (uid && uid != pwd->pw_uid)) *************** *** 770,776 **** /* * Allow for a '.' and 16 characters for any instance as well as ! * space for a ':' and 16 charcters defining the authentication type. */ #define NBUFSIZ (UT_NAMESIZE + 1 + 16 + 1 + 16) --- 771,777 ---- /* * Allow for a '.' and 16 characters for any instance as well as ! * space for a ':' and 16 characters defining the authentication type. */ #define NBUFSIZ (UT_NAMESIZE + 1 + 16 + 1 + 16)