diff options
author | Jaroslav Škarvada <jskarvad@redhat.com> | 2018-10-20 22:35:28 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2018-10-22 13:20:35 +0200 |
commit | f79d3ab1dee474740ba7ad119fd8a86a73a796bc (patch) | |
tree | 83085df02b9f7f0d268dd3a34743ec2a993f79db | |
parent | b0ea31142a550167fca9d3590f54439b9d6a3564 (diff) |
trafgen: fixed '--in -' to work again with STDIN
This has been broken by commit 4e47fd021a6945aa626eaef4446c5b547d8c2a85.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | trafgen_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index 7fffdd9..53723dd 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -1513,7 +1513,7 @@ void compile_packets(char *file, bool verbose, unsigned int cpu, char tmp_file[128]; int ret = -1; - if (access(file, R_OK)) { + if (strncmp("-", file, strlen("-")) && access(file, R_OK)) { fprintf(stderr, "Cannot access %s: %s!\n", file, strerror(errno)); die(); } |