Bug 10881 - df command ends with error
Summary: df command ends with error
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.25.x
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-20 07:09 UTC by Andrey
Modified: 2018-03-20 07:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2018-03-20 07:09:31 UTC
In busybox 1.25.1 df command ends with error if device have long mounting point name with spaces (example "Seagate Backup Plus Drive".
Then have result:
# df -h /dev/sdb1
Filesystem                Size      Used Available Use% Mounted on
df: /tmp/mnt/Seagate\040Backup\040Plus\040Drive: No such file or directory

and:

df -h /tmp/mnt/Seagate\ Backup\ Plus\ Drive/
Filesystem                Size      Used Available Use% Mounted on
df: /tmp/mnt/Seagate\040Backup\040Plus\040Drive: No such file or directory

For comparison, ls command read the device content:
# ls -l /tmp/mnt/Seagate\ Backup\ Plus\ Drive/
-rwxrwxr-x    1 root     www             32 Jul 17  2012 Autorun.inf
-rwxrwxr-x    2 root     www         562718 Aug 15  2013 BackupPlus.ico
...

If make mounting point name short, then df command work.