50c50
< __FBSDID("$FreeBSD: head/usr.bin/write/write.c 139718 2005-01-05 11:52:40Z cognet $");
---
> __FBSDID("$FreeBSD: head/usr.bin/write/write.c 173572 2007-11-12 20:02:21Z jhb $");
79d78
< char *cp;
103,104c102,103
< if ((cp = rindex(mytty, '/')))
< mytty = cp + 1;
---
> if (!strncmp(mytty, _PATH_DEV, strlen(_PATH_DEV)))
> mytty += strlen(_PATH_DEV);
< __FBSDID("$FreeBSD: head/usr.bin/write/write.c 139718 2005-01-05 11:52:40Z cognet $");
---
> __FBSDID("$FreeBSD: head/usr.bin/write/write.c 173572 2007-11-12 20:02:21Z jhb $");
79d78
< char *cp;
103,104c102,103
< if ((cp = rindex(mytty, '/')))
< mytty = cp + 1;
---
> if (!strncmp(mytty, _PATH_DEV, strlen(_PATH_DEV)))
> mytty += strlen(_PATH_DEV);