aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 65757d7d1..2915d4009 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -1202,7 +1202,7 @@ int diff_main(int argc, char **argv)
1202 * driver routine. Both drivers use the contents of stb1 and stb2. 1202 * driver routine. Both drivers use the contents of stb1 and stb2.
1203 */ 1203 */
1204 if (argc < 2) { 1204 if (argc < 2) {
1205 bb_error_msg("Missing filename"); 1205 bb_error_msg("missing filename");
1206 bb_show_usage(); 1206 bb_show_usage();
1207 } 1207 }
1208 if (strcmp(argv[0], "-") == 0) { 1208 if (strcmp(argv[0], "-") == 0) {
@@ -1216,12 +1216,12 @@ int diff_main(int argc, char **argv)
1216 } else 1216 } else
1217 xstat(argv[1], &stb2); 1217 xstat(argv[1], &stb2);
1218 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))) 1218 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode)))
1219 bb_error_msg_and_die("Can't compare - to a directory"); 1219 bb_error_msg_and_die("can't compare - to a directory");
1220 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { 1220 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
1221#if ENABLE_FEATURE_DIFF_DIR 1221#if ENABLE_FEATURE_DIFF_DIR
1222 diffdir(argv[0], argv[1]); 1222 diffdir(argv[0], argv[1]);
1223#else 1223#else
1224 bb_error_msg_and_die("Directory comparison not supported"); 1224 bb_error_msg_and_die("directory comparison not supported");
1225#endif 1225#endif
1226 } else { 1226 } else {
1227 if (S_ISDIR(stb1.st_mode)) { 1227 if (S_ISDIR(stb1.st_mode)) {