Don't assume a stat() fails only if the target file doesn't exist.
authorGuy Harris <guy@alum.mit.edu>
Thu, 7 Jan 2016 03:01:39 +0000 (19:01 -0800)
committerGuy Harris <guy@alum.mit.edu>
Thu, 7 Jan 2016 03:02:08 +0000 (03:02 +0000)
commit97378a5bad8c20f4364b7fe86d96d9d14a192d48
treeb6fc5354775654b012b4a09731c32cac439fbc3e
parent613b406023dc3d53e05bd9862ab5d4415806fa91
Don't assume a stat() fails only if the target file doesn't exist.

If the error is something other than ENOENT, return that error
indication.

Change-Id: If866cab5f0de0e4fa8b1ed1cead1290feb88a3cb
Reviewed-on: https://code.wireshark.org/review/13091
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wsutil/filesystem.c