=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/util.c,v retrieving revision 1.103 retrieving revision 1.104 diff -c -r1.103 -r1.104 *** src/usr.bin/cvs/util.c 2007/01/26 11:19:44 1.103 --- src/usr.bin/cvs/util.c 2007/02/07 23:47:56 1.104 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.103 2007/01/26 11:19:44 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005, 2006 Joris Vink --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.104 2007/02/07 23:47:56 todd Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005, 2006 Joris Vink *************** *** 490,496 **** fatal("cvs_rmdir: path truncation"); if (ent->d_type == DT_UNKNOWN) { ! if (stat(fpath, &st) == -1) fatal("'%s': %s", fpath, strerror(errno)); switch (st.st_mode & S_IFMT) { --- 490,496 ---- fatal("cvs_rmdir: path truncation"); if (ent->d_type == DT_UNKNOWN) { ! if (lstat(fpath, &st) == -1) fatal("'%s': %s", fpath, strerror(errno)); switch (st.st_mode & S_IFMT) {