diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-12-05 08:29:53 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-12-05 08:31:29 +0100 |
commit | 41619edb0509565e5d35192aecb0cfb2249277a5 (patch) | |
tree | d1957fd3daca730cab01e88ab47d4211716bdd0b | |
parent | 45831af4fa6e1890f19d6e9e2f35ad4e36f35643 (diff) | |
download | l2md-41619edb0509565e5d35192aecb0cfb2249277a5.tar.gz |
l2md: use correct path in error msg when config cannot be opened
It's the path variable and not tmp, so use the correct one.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -215,7 +215,7 @@ struct config *config_init(int argc, char **argv) slprintf(path, sizeof(path), "%s/.l2mdconfig", homedir); fp = fopen(path, "r"); if (!fp) - panic("Cannot open config %s: %s\n", tmp, strerror(errno)); + panic("Cannot open config %s: %s\n", path, strerror(errno)); config_ulimits(); |