From 8e1e835d1140541bd76d15ee350a61d6359138b6 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 13 Sep 2004 18:14:15 +0000 Subject: [PATCH] Don't try to stat network mounts in parse_mount_entries, we can't return a meaningful device for them anyway (suggested by Robert Shearman). --- dlls/ntdll/directory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index e947d2c7c94..77a272c45af 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -212,6 +212,11 @@ static char *parse_mount_entries( FILE *f, dev_t dev, ino_t ino ) while ((entry = getmntent( f ))) { + /* don't even bother stat'ing network mounts, there's no meaningful device anyway */ + if (!strcmp( entry->mnt_type, "nfs" ) || + !strcmp( entry->mnt_type, "smbfs" ) || + !strcmp( entry->mnt_type, "ncpfs" )) continue; + if (stat( entry->mnt_dir, &st ) == -1) continue; if (st.st_dev != dev || st.st_ino != ino) continue; if (!strcmp( entry->mnt_type, "supermount" )) -- 2.11.4.GIT