aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index feb931416..d8b5db768 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1296,12 +1296,12 @@ static int findInodeInfo(
** Return TRUE if pFile has been renamed or unlinked since it was first opened.
*/
static int fileHasMoved(unixFile *pFile){
- struct stat buf;
- return pFile->pInode!=0 &&
#if OS_VXWORKS
- pFile->pId!=pFile->pInode->fileId.Pid;
+ return pFile->pInode!=0 && pFile->pId!=pFile->pInode->fileId.pId;
#else
- (osStat(pFile->zPath, &buf)!=0 || buf.st_ino!=pFile->pInode->fileId.ino);
+ struct stat buf;
+ return pFile->pInode!=0 &&
+ (osStat(pFile->zPath, &buf)!=0 || buf.st_ino!=pFile->pInode->fileId.ino);
#endif
}