]> git.sur5r.net Git - i3/i3status/commit
Fix invalid handling of glob() errors on Linux
authorOlivier Gayot <olivier.gayot@sigexec.com>
Wed, 20 Jun 2018 09:42:59 +0000 (11:42 +0200)
committerOlivier Gayot <olivier.gayot@sigexec.com>
Wed, 20 Jun 2018 12:20:17 +0000 (14:20 +0200)
commitc64195d14728aa82e280d022e9f7ceff71cfc6c1
treec4670a6e9fac2bdf2ea60f9f9fa4e6f7e57cc181
parent95c068358acb303ab01ab8dc372f893aec5fe1b0
Fix invalid handling of glob() errors on Linux

The manual of glob(3) says that the function returns 0 on successful
completion. Any other integer value should be considered an error, not
only negative integers.

In practice, *BSD systems use negative values but Linux uses positive
integers.

Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
src/print_cpu_temperature.c
src/process_runs.c