From de41415836bb14cf4a42db4b24855c7542937ddb Mon Sep 17 00:00:00 2001 From: millert Date: Mon, 21 Jul 2003 22:57:16 +0000 Subject: Fix printing of status when not in -l mode which was broken when the -l support was added. --- usr.bin/diff/diff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/diff/diff.c') diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index 91e81bb4a9a..149259e178a 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.30 2003/07/21 21:59:58 henning Exp $ */ +/* $OpenBSD: diff.c,v 1.31 2003/07/21 22:57:16 millert Exp $ */ /* * Copyright (c) 2003 Todd C. Miller @@ -21,7 +21,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diff.c,v 1.30 2003/07/21 21:59:58 henning Exp $"; +static const char rcsid[] = "$OpenBSD: diff.c,v 1.31 2003/07/21 22:57:16 millert Exp $"; #endif /* not lint */ #include @@ -335,11 +335,11 @@ print_status(int val, char *path1, char *path2, char *entry) path2, entry ? entry : ""); break; case D_MISMATCH1: - printf("File %s/%s is a directory while file %s/%s is a file\n", + printf("File %s%s is a directory while file %s%s is a regular file\n", path1, entry ? entry : "", path2, entry ? entry : ""); break; case D_MISMATCH2: - printf("File %s/%s is a file while file %s/%s is a directory\n", + printf("File %s%s is a regular file while file %s%s is a directory\n", path1, entry ? entry : "", path2, entry ? entry : ""); break; } -- cgit v1.2.3-59-g8ed1b