* login/utmp_file.c (file_writable): New variable.
commit37a6a271bf72e247047f1e4e9cf457e895d57dce
authorUlrich Drepper <drepper@redhat.com>
Sun, 30 Nov 2008 06:56:27 +0000 (30 06:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 30 Nov 2008 06:56:27 +0000 (30 06:56 +0000)
tree68bd421a535118a080c8b893ca5624dcfed6b556
parentbe4607eba89e85e3fd825e97e203f02cc3f31688
* login/utmp_file.c (file_writable): New variable.

(setutent_file): Don't try to open file for writing.
(pututline_file): Before writing, make descriptor writable if
necessary.
ChangeLog
login/utmp_file.c