diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-22 22:43:31 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-23 04:44:40 +1000 |
commit | c9ea9e81ba5a47d7d738916e36748468c2ac8d54 (patch) | |
tree | 68099eea6239365b516c66ef36e298980d3a655c | |
parent | ae68ad65faf5d53a15549f1995f5683b4ba12c03 (diff) | |
download | busybox-w32-c9ea9e81ba5a47d7d738916e36748468c2ac8d54.tar.gz busybox-w32-c9ea9e81ba5a47d7d738916e36748468c2ac8d54.tar.bz2 busybox-w32-c9ea9e81ba5a47d7d738916e36748468c2ac8d54.zip |
coreutils/ls: ignore st_blocks as it does not exist on Windows
-rw-r--r-- | coreutils/ls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 95c4b4be6..731585532 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -584,7 +584,11 @@ static int list_single(struct dnode *dn) | |||
584 | column += printf("%7ld ", (long) dn->dstat.st_ino); | 584 | column += printf("%7ld ", (long) dn->dstat.st_ino); |
585 | break; | 585 | break; |
586 | case LIST_BLOCKS: | 586 | case LIST_BLOCKS: |
587 | #ifdef __MINGW32__ | ||
588 | column += printf("%4"OFF_FMT"d ", 0); | ||
589 | #else | ||
587 | column += printf("%4"OFF_FMT"d ", (off_t) dn->dstat.st_blocks >> 1); | 590 | column += printf("%4"OFF_FMT"d ", (off_t) dn->dstat.st_blocks >> 1); |
591 | #endif | ||
588 | break; | 592 | break; |
589 | case LIST_MODEBITS: | 593 | case LIST_MODEBITS: |
590 | column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode)); | 594 | column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode)); |