=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/diff/diffdir.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/diff/diffdir.c 2003/07/09 00:07:44 1.22 --- src/usr.bin/diff/diffdir.c 2003/07/21 22:57:17 1.23 *************** *** 1,4 **** ! /* $OpenBSD: diffdir.c,v 1.22 2003/07/09 00:07:44 millert Exp $ */ /* * Copyright (c) 2003 Todd C. Miller --- 1,4 ---- ! /* $OpenBSD: diffdir.c,v 1.23 2003/07/21 22:57:17 millert Exp $ */ /* * Copyright (c) 2003 Todd C. Miller *************** *** 21,27 **** */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: diffdir.c,v 1.22 2003/07/09 00:07:44 millert Exp $"; #endif /* not lint */ #include --- 21,27 ---- */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: diffdir.c,v 1.23 2003/07/21 22:57:17 millert Exp $"; #endif /* not lint */ #include *************** *** 138,145 **** } } if (lflag) { ! path1[dirlen1 - 1] = '\0'; ! path2[dirlen2 - 1] = '\0'; for (dp1 = dirp1; (dent1 = *dp1) != NULL; dp1++) { print_status(dent1->d_status, path1, path2, dent1->d_name); --- 138,145 ---- } } if (lflag) { ! path1[dirlen1] = '\0'; ! path2[dirlen2] = '\0'; for (dp1 = dirp1; (dent1 = *dp1) != NULL; dp1++) { print_status(dent1->d_status, path1, path2, dent1->d_name); *************** *** 291,296 **** --- 291,298 ---- return; } dp->d_status = diffreg(path1, path2, flags); + if (!lflag) + print_status(dp->d_status, path1, path2, NULL); } /*