Date: Mon, 24 Nov 2025 18:34:20 +0530 From: Ankush Mondal <ankushmondal1y2t@gmail.com> To: freebsd-bugs@freebsd.org Subject: [PATCH] df: correct BLOCKSIZE handling for -k to use 1K-blocks (290710) Message-ID: <CAEw80_2K_NZmQPP45aDyVcv5n_NC-4st9nqaSUt3N=F%2BrLj5Fg@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
[-- Attachment #2 --]
diff --git a/bin/df/df.c b/bin/df/df.c
index db5b8b18beae..e9c77ed9543d 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -154,7 +154,7 @@ main(int argc, char *argv[])
break;
case 'k':
kflag++;
- setenv("BLOCKSIZE", "1024", 1);
+ setenv("BLOCKSIZE", "1k", 1);
hflag = 0;
break;
case 'l':
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEw80_2K_NZmQPP45aDyVcv5n_NC-4st9nqaSUt3N=F%2BrLj5Fg>
