Applied patch from David Douthitt to fix problem where ls reports half the
authorMark Whitley <markw@lineo.com>
Tue, 27 Mar 2001 20:59:14 +0000 (20:59 -0000)
committerMark Whitley <markw@lineo.com>
Tue, 27 Mar 2001 20:59:14 +0000 (20:59 -0000)
file size. Should close bug #1140.

coreutils/ls.c
ls.c

index 77de93a0c37a7d2bb03afdc01a34283bcea1fc31..201509210fdaee0033327f38a10631c72017ed2b 100644 (file)
@@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
                                                                (ls_disp_hr==TRUE)? 0: 1));
 #else
 #if _FILE_OFFSET_BITS == 64
-                                       printf("%9lld ", dn->dstat.st_size>>1);
+                                       printf("%9lld ", dn->dstat.st_size);
 #else
-                                       printf("%9ld ", dn->dstat.st_size>>1);
+                                       printf("%9ld ", dn->dstat.st_size);
 #endif
 #endif
                                }
diff --git a/ls.c b/ls.c
index 77de93a0c37a7d2bb03afdc01a34283bcea1fc31..201509210fdaee0033327f38a10631c72017ed2b 100644 (file)
--- a/ls.c
+++ b/ls.c
@@ -652,9 +652,9 @@ static int list_single(struct dnode *dn)
                                                                (ls_disp_hr==TRUE)? 0: 1));
 #else
 #if _FILE_OFFSET_BITS == 64
-                                       printf("%9lld ", dn->dstat.st_size>>1);
+                                       printf("%9lld ", dn->dstat.st_size);
 #else
-                                       printf("%9ld ", dn->dstat.st_size>>1);
+                                       printf("%9ld ", dn->dstat.st_size);
 #endif
 #endif
                                }