=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/oldrdist/Attic/expand.c,v retrieving revision 1.13 retrieving revision 1.14 diff -c -r1.13 -r1.14 *** src/usr.bin/oldrdist/Attic/expand.c 2011/04/06 11:36:26 1.13 --- src/usr.bin/oldrdist/Attic/expand.c 2011/07/22 18:26:18 1.14 *************** *** 1,4 **** ! /* $OpenBSD: expand.c,v 1.13 2011/04/06 11:36:26 miod Exp $ */ /* * Copyright (c) 1983, 1993 --- 1,4 ---- ! /* $OpenBSD: expand.c,v 1.14 2011/07/22 18:26:18 matthew Exp $ */ /* * Copyright (c) 1983, 1993 *************** *** 300,306 **** return; goto patherr2; } ! if (fstat(dirp->dd_fd, &stb) < 0) goto patherr1; if (!ISDIR(stb.st_mode)) { errno = ENOTDIR; --- 300,306 ---- return; goto patherr2; } ! if (fstat(dirfd(dirp), &stb) < 0) goto patherr1; if (!ISDIR(stb.st_mode)) { errno = ENOTDIR;