diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 04:50:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 04:50:36 +0200 |
commit | 09e63bb81f12707d31c8c4570931af0196b53a46 (patch) | |
tree | 1b550ca677e6cd4fdd70eabda1fd402684b8ec7d /loginutils | |
parent | 9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a (diff) | |
download | busybox-w32-09e63bb81f12707d31c8c4570931af0196b53a46.tar.gz busybox-w32-09e63bb81f12707d31c8c4570931af0196b53a46.tar.bz2 busybox-w32-09e63bb81f12707d31c8c4570931af0196b53a46.zip |
df: fix "df /"
also, clean up mount checks in mkfs/fsck.
function old new delta
find_mount_point 243 261 +18
sha1_process_block64 497 510 +13
find_main 436 444 +8
display_speed 85 90 +5
df_main 795 793 -2
parse_command 1463 1460 -3
static.ignored_mounts 8 - -8
mkfs_minix_main 2962 2937 -25
fsck_minix_main 3065 2970 -95
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/getty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index 34b09cecc..838adf2e7 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -239,7 +239,7 @@ static void open_tty(const char *tty) | |||
239 | // cur_dir_fd = xopen(".", O_DIRECTORY | O_NONBLOCK); | 239 | // cur_dir_fd = xopen(".", O_DIRECTORY | O_NONBLOCK); |
240 | // xchdir("/dev"); | 240 | // xchdir("/dev"); |
241 | // xstat(tty, &st); | 241 | // xstat(tty, &st); |
242 | // if ((st.st_mode & S_IFMT) != S_IFCHR) | 242 | // if (!S_ISCHR(st.st_mode)) |
243 | // bb_error_msg_and_die("%s: not a character device", tty); | 243 | // bb_error_msg_and_die("%s: not a character device", tty); |
244 | 244 | ||
245 | if (tty[0] != '/') | 245 | if (tty[0] != '/') |