=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/file.c,v retrieving revision 1.183 retrieving revision 1.184 diff -c -r1.183 -r1.184 *** src/usr.bin/cvs/file.c 2007/01/31 21:07:35 1.183 --- src/usr.bin/cvs/file.c 2007/02/07 23:47:56 1.184 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.183 2007/01/31 21:07:35 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.184 2007/02/07 23:47:56 todd Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau *************** *** 415,424 **** /* * nfs and afs will show d_type as DT_UNKNOWN * for files and/or directories so when we encounter ! * this we call stat() on the path to be sure. */ if (dp->d_type == DT_UNKNOWN) { ! if (stat(fpath, &st) == -1) fatal("'%s': %s", fpath, strerror(errno)); --- 415,424 ---- /* * nfs and afs will show d_type as DT_UNKNOWN * for files and/or directories so when we encounter ! * this we call lstat() on the path to be sure. */ if (dp->d_type == DT_UNKNOWN) { ! if (lstat(fpath, &st) == -1) fatal("'%s': %s", fpath, strerror(errno));