Only use file size for regular files. Allow seeking block devices.
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 5 Feb 2009 16:34:43 +0000 (18:34 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 5 Feb 2009 16:37:56 +0000 (18:37 +0200)
commit9d4c2ee574c5bf99fc04c1141d96cfdc256b13f7
treecde0c9d06e6f00f2443ca50d93a154093c0ff348
parentbe6cfb05616fa88c5267eb6d8571b100538be77e
Only use file size for regular files. Allow seeking block devices.

Block special files are always seekable. File size is undefined for
non-regular files.
modules/access/file.c