Fix "invalid file header"
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 23 Sep 2010 14:04:36 +0000 (16:04 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 23 Sep 2010 14:35:22 +0000 (23:35 +0900)
commit1aa99694d8d03882a26a6526774ee49a26778457
treee339b9be601633bd75896bc561fb1ece7b008cf1
parent357d60c6502ed5219400603f3274369d3a786a57
Fix "invalid file header"

Use stat before open the file to find out if the
file already exists. Only if file exists and
the header is invalid trigger connman_error
src/stats.c