diff options
author | Andrea Monaco <andrea.monaco@autistici.org> | 2021-11-11 18:40:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-11-11 18:40:17 +0100 |
commit | c8bb19ccac4b53ff5b7bf9f05703e8dfd5405b4d (patch) | |
tree | bf8f22a16f49715b06380168ea0999854ff08bc1 /acpi | |
parent | 77cdd08a2faf08afd13610f11db694856a7ce44c (diff) | |
download | hurd-c8bb19ccac4b53ff5b7bf9f05703e8dfd5405b4d.tar.gz hurd-c8bb19ccac4b53ff5b7bf9f05703e8dfd5405b4d.tar.bz2 hurd-c8bb19ccac4b53ff5b7bf9f05703e8dfd5405b4d.zip |
console: fix listing of directory in netfs_get_dirents
Listing /dev/vcs which is translated by /hurd/console gives the following:
$ ls /dev/vcs
ls: reading directory '/dev/vcs': Invalid argument
1 2 3 4 5 6
That error is probably harmless but annoying.
It is caused by netfs_get_dirents the last time it is called during
listing, because it calls mmap with size = 0.
* console/console.c (netfs_get_dirents): Do not call mmap when size is 0.
Diffstat (limited to 'acpi')
0 files changed, 0 insertions, 0 deletions