diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2011-09-29 21:18:17 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2011-09-29 21:25:50 +0200 |
commit | 798e258d301ac237cb1d72b5fc4b19ee900d6f7d (patch) | |
tree | ae70c1d2242c61e982190ca1e8a512a54b32305c /src/umount.c | |
parent | a0ccd2acab443f5fa33e464a7e2f756dff2a5e35 (diff) |
systemctl: fix corrupted output of units
On some systems the list of units in systemctl output came out wrong,
all on one line and with missing descriptions.
It turns out printf() really attempts to mmap 2G memory when INT_MAX is
passed as the field width. On machines with small virtual memory
without overcommit the mmap inside printf() failed.
Do not use INT_MAX for unlimited width.
Diffstat (limited to 'src/umount.c')
0 files changed, 0 insertions, 0 deletions