Don't get tty group info multiple times in grantpt.
commit21f2c22320c00c1627dd734794af7353ad7637b2
authorUlrich Drepper <drepper@redhat.com>
Wed, 25 Nov 2009 01:50:27 +0000 (24 17:50 -0800)
committerUlrich Drepper <drepper@redhat.com>
Wed, 25 Nov 2009 01:50:27 +0000 (24 17:50 -0800)
tree688063181b71dc42ae15d907452f61b458c6de72
parent80b3a4ea1c4eb5641aa4c0cac57fe9df65ddba86
Don't get tty group info multiple times in grantpt.

This is a minor optimization.  The tty group mustn't change so a
successful call to getgrnam will always return the same information.
Cache it and reuse it.
ChangeLog
sysdeps/unix/grantpt.c