diff options
Diffstat (limited to 'cpukit/libmisc/shell/print-ls.c')
-rw-r--r-- | cpukit/libmisc/shell/print-ls.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libmisc/shell/print-ls.c b/cpukit/libmisc/shell/print-ls.c index 192d8f11b8..56e7b149d7 100644 --- a/cpukit/libmisc/shell/print-ls.c +++ b/cpukit/libmisc/shell/print-ls.c @@ -162,9 +162,10 @@ printlong(rtems_shell_ls_globals* globals, DISPLAY *dp) } else { #endif { - unsigned long long size = sp->st_blocks; - size *= sp->st_blksize; - if (size < 0x100000000ULL) + unsigned long long size; + if (sp->st_size < 0) + size = sp->st_size * -1; + else size = sp->st_size; (void)printf("%*llu ", dp->s_size, size); } |