-/* $OpenBSD: main.c,v 1.47 2017/05/28 08:51:06 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.48 2017/05/29 04:40:35 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1993
char globalhostname[HOST_NAME_MAX+1];
struct utsname kerninfo;
char name[LOGIN_NAME_MAX];
-char dev[] = _PATH_DEV;
char ttyn[32];
char *portselector(void);
} else {
int i;
- snprintf(ttyn, sizeof ttyn, "%s%s", dev, argv[2]);
+ snprintf(ttyn, sizeof ttyn, "%s%s", _PATH_DEV, argv[2]);
if (strcmp(argv[0], "+") != 0) {
chown(ttyn, 0, 0);
chmod(ttyn, 0600);