df: Skip final '/' character when calculating basename.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 11 Jan 2011 13:55:23 +0000 (13:55 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 11 Jan 2011 13:55:23 +0000 (13:55 +0000)
commite5220b26f51d5912371424ab6dfbdb46ce6aa170
tree9da1a1e6adfd8566fddb036abcafed2cfcb171dd
parent0c60e4d9dd6549c2135699490ba8a9ec1dd50ab9
df: Skip final '/' character when calculating basename.

Previously it was including the final '/' character when calculating
the basename for the -a option eg:

Filesystem                                Size       Used  Available  Use%
/Ubuntu1010x64:/dev/sda1                  9.4G       2.3G       6.6G   25%

With this patch the '/' is not printed.
df/main.c