df -hk should disable -h and df -kh should disable -k

This commit is contained in:
sin 2014-10-18 18:22:55 +01:00
parent dc3a9d9e2a
commit cea440bd2d

5
df.c
View File

@ -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");