Use uint64_t instead of uint32_t to store a host inode when checking

for duplicate inodes, as Cygwin's stat(2) has a 64 bit st_ino.
Fix from Ian Lance Taylor in private email.
This commit is contained in:
lukem 2004-05-31 22:24:51 +00:00
parent bb07f837f4
commit 5e4b83e60b
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: walk.c,v 1.15 2003/09/19 06:11:35 itojun Exp $ */
/* $NetBSD: walk.c,v 1.16 2004/05/31 22:24:51 lukem Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -73,7 +73,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
__RCSID("$NetBSD: walk.c,v 1.15 2003/09/19 06:11:35 itojun Exp $");
__RCSID("$NetBSD: walk.c,v 1.16 2004/05/31 22:24:51 lukem Exp $");
#endif /* !__lint */
#include <sys/param.h>
@ -495,7 +495,7 @@ link_check(fsinode *entry)
{
static struct dupnode {
uint32_t dev;
uint32_t ino;
uint64_t ino;
fsinode *dup;
} *dups, *newdups;
static int ndups, maxdups;