diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-06-17 14:58:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-06-17 14:58:28 +0000 |
commit | 5e36d9b134d45dccc1fd4135f1da5a5f30d1b657 (patch) | |
tree | 379df65335e8e04f8988d5473a2191b7a7e29d0e | |
parent | 91f4b1a4c96c0daaf66a42ee601d2660ed205290 (diff) |
incorrect pointer used, hence gecos expansion was ignored
ok millert
-rw-r--r-- | usr.bin/finger/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 380c06682aa..b57351b63bb 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.32 2015/12/26 20:51:35 guenther Exp $ */ +/* $OpenBSD: util.c,v 1.33 2018/06/17 14:58:27 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -104,7 +104,7 @@ userinfo(PERSON *pn, struct passwd *pw) if (!(p = strsep(&bp, ","))) return; expandusername(p, pw->pw_name, name, sizeof(name)); - if (stravis(&pn->realname, p, VIS_SAFE|VIS_NOSLASH) == -1) + if (stravis(&pn->realname, name, VIS_SAFE|VIS_NOSLASH) == -1) err(1, "stravis"); if ((p = strsep(&bp, ",")) && *p) { if (stravis(&pn->office, p, VIS_SAFE|VIS_NOSLASH) == -1) |