ChangeSet ID: 13754 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@wine.codeweavers.com 2004/09/13 13:14:15 Modified files: dlls/ntdll : directory.c Log message: 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). Patch: http://cvs.winehq.org/patch.py?id=13754 Old revision New revision Changes Path 1.18 1.19 +5 -0 wine/dlls/ntdll/directory.c Index: wine/dlls/ntdll/directory.c diff -u -p wine/dlls/ntdll/directory.c:1.18 wine/dlls/ntdll/directory.c:1.19 --- wine/dlls/ntdll/directory.c:1.18 Thu May 23 07:17:31 2013 +++ wine/dlls/ntdll/directory.c Thu May 23 07:17:31 2013 @@ -212,6 +212,11 @@ static char *parse_mount_entries( FILE * 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" ))