=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdistd/server.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/rdistd/server.c 2014/07/05 06:39:13 1.26 --- src/usr.bin/rdistd/server.c 2014/07/05 06:40:54 1.27 *************** *** 1,4 **** ! /* $OpenBSD: server.c,v 1.26 2014/07/05 06:39:13 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: server.c,v 1.27 2014/07/05 06:40:54 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 428,436 **** optarget = ptarget; len = ptarget - target; while ((dp = readdir(d)) != NULL) { ! if ((D_NAMLEN(dp) == 1 && dp->d_name[0] == '.') || ! (D_NAMLEN(dp) == 2 && dp->d_name[0] == '.' && ! dp->d_name[1] == '.')) continue; if (len + 1 + (int)strlen(dp->d_name) >= MAXPATHLEN - 1) { --- 428,435 ---- optarget = ptarget; len = ptarget - target; while ((dp = readdir(d)) != NULL) { ! if (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || ! dp->d_name[1] == '.' && dp->d_name[2] == '\0')) continue; if (len + 1 + (int)strlen(dp->d_name) >= MAXPATHLEN - 1) {