vi,fsck: do not use build timestamp unconditionally. Closes 9626

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-01-29 19:14:26 +01:00
parent 86663910ba
commit eba7fe6bb9
2 changed files with 2 additions and 2 deletions

View File

@ -1071,7 +1071,7 @@ int fsck_main(int argc UNUSED_PARAM, char **argv)
new_args(); /* G.args[G.num_args - 1] is the last, NULL element */ new_args(); /* G.args[G.num_args - 1] is the last, NULL element */
if (!notitle) if (!notitle)
puts("fsck (busybox "BB_VER", "BB_BT")"); puts("fsck (busybox "BB_VER")");
/* Even plain "fsck /dev/hda1" needs fstab to get fs type, /* Even plain "fsck /dev/hda1" needs fstab to get fs type,
* so we are scanning it anyway */ * so we are scanning it anyway */

View File

@ -1457,7 +1457,7 @@ static void colon(char *buf)
} }
#endif /* FEATURE_VI_SEARCH */ #endif /* FEATURE_VI_SEARCH */
} else if (strncmp(cmd, "version", i) == 0) { // show software version } else if (strncmp(cmd, "version", i) == 0) { // show software version
status_line(BB_VER " " BB_BT); status_line(BB_VER);
} else if (strncmp(cmd, "write", i) == 0 // write text to file } else if (strncmp(cmd, "write", i) == 0 // write text to file
|| strncmp(cmd, "wq", i) == 0 || strncmp(cmd, "wq", i) == 0
|| strncmp(cmd, "wn", i) == 0 || strncmp(cmd, "wn", i) == 0