* edit.c (check_file_access): Only allow to edit regular files.
commitc932c4610a721fc095f9d85887cdc2746b58029a
authorPavel Roskin <proski@gnu.org>
Thu, 18 Oct 2001 09:35:22 +0000 (18 09:35 +0000)
committerPavel Roskin <proski@gnu.org>
Thu, 18 Oct 2001 09:35:22 +0000 (18 09:35 +0000)
tree50cdbd151f8794f037085295b4220b9bce36f452
parent6c1fabe9206581f417504d1fee698cc2c0eb49e1
* edit.c (check_file_access): Only allow to edit regular files.
Use stat() before open() to prevent hangs on pipes, use fstat()
afterwards if stat() was unsuccessful.
edit/ChangeLog
edit/edit.c