mirror of git://git.suckless.org/ubase
df -hk should disable -h and df -kh should disable -k
This commit is contained in:
parent
dc3a9d9e2a
commit
cea440bd2d
5
df.c
5
df.c
|
@ -33,9 +33,11 @@ main(int argc, char *argv[])
|
|||
break;
|
||||
case 'h':
|
||||
hflag = 1;
|
||||
kflag = 0;
|
||||
break;
|
||||
case 'k':
|
||||
kflag = 1;
|
||||
hflag = 0;
|
||||
blksize = 1024;
|
||||
break;
|
||||
case 's':
|
||||
|
@ -45,9 +47,6 @@ main(int argc, char *argv[])
|
|||
usage();
|
||||
} ARGEND;
|
||||
|
||||
if (kflag && hflag)
|
||||
hflag = 0;
|
||||
|
||||
if (hflag)
|
||||
printf("Filesystem Size Used "
|
||||
"Avail Capacity Mounted on\n");
|
||||
|
|
Loading…
Reference in New Issue