summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y2
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();
}