1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-08 09:39:38 +00:00

Having BLOCKSIZE=K and using "-k" option ls would use 2K block size...

This commit is contained in:
Poul-Henning Kamp 1995-03-23 19:05:00 +00:00
parent 2c0e14c2d2
commit 90b0ec316f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7282

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: ls.c,v 1.4 1994/12/18 19:00:01 joerg Exp $
* $Id: ls.c,v 1.5 1995/03/19 13:28:44 joerg Exp $
*/
#ifndef lint
@ -227,10 +227,12 @@ main(argc, argv)
/* If -l or -s, figure out block size. */
if (f_longform || f_size) {
(void)getbsize(&notused, &blocksize);
blocksize /= 512;
if (f_kblocks)
blocksize *= 2;
blocksize = 2;
else {
(void)getbsize(&notused, &blocksize);
blocksize /= 512;
}
}
/* Select a sort function. */