[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

df (GNU fileutils) 4.0, --block-size=0

From: Olli Kihlberg
Subject: df (GNU fileutils) 4.0, --block-size=0
Date: Sun, 10 Jun 2001 18:26:59 +0300 (EET DST)


This is not really a bug, but...

I'm using df from GNU fileutils 4.0. (And I don't have possibility to
test 4.1 on this machine.) I noticed that if I use (obviously stupid)
argument zero as --block-size, df will dump core:


% df --block-size=0 /opt    
Filesystem            0-blocks      Used Available Use% Mounted on
Floating point exception (core dumped)


There is no point to use zero as block size, but it would be trivial
to test it, wouldn't it. Utilities shouldn't crash, no matter how
stupid the user might be.

I'm sorry to have bothered you with such a trivial matter if this has
already been addressed in 4.1.

Internet    : address@hidden / "For we are all killers, on land
In Real Life: Olli Kihlberg       / and on sea; Bonapartes and Sharks
_________________________________/ included."  - Herman Melville -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]