summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Škarvada <jskarvad@redhat.com>2018-10-20 22:35:28 +0200
committerTobias Klauser <tklauser@distanz.ch>2018-10-22 13:20:35 +0200
commitf79d3ab1dee474740ba7ad119fd8a86a73a796bc (patch)
tree83085df02b9f7f0d268dd3a34743ec2a993f79db
parentb0ea31142a550167fca9d3590f54439b9d6a3564 (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.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();
}
New documentation for the device_link mechanism. ... and, of course, lots of typo fixes and small updates" * tag 'docs-4.10' of git://git.lwn.net/linux: (193 commits) dma-buf: Extract dma-buf.rst Update Documentation/00-INDEX docs: 00-INDEX: document directories/files with no docs docs: 00-INDEX: remove non-existing entries docs: 00-INDEX: add missing entries for documentation files/dirs docs: 00-INDEX: consolidate process/ and admin-guide/ description scripts: add a script to check if Documentation/00-INDEX is sane Docs: change sh -> awk in REPORTING-BUGS Documentation/core-api/device_link: Add initial documentation core-api: remove an unexpected unident ppc/idle: Add documentation for powersave=off Doc: Correct typo, "Introdution" => "Introduction" Documentation/atomic_ops.txt: convert to ReST markup Documentation/local_ops.txt: convert to ReST markup Documentation/assoc_array.txt: convert to ReST markup docs-rst: parse-headers.pl: cleanup the documentation docs-rst: fix media cleandocs target docs-rst: media/Makefile: reorganize the rules docs-rst: media: build SVG from graphviz files docs-rst: replace bayer.png by a SVG image ...
Diffstat (limited to 'kernel/ptrace.c')