diff options
author | joerg <joerg@pkgsrc.org> | 2017-11-07 22:26:38 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-11-07 22:26:38 +0000 |
commit | 1a20bf9fe0ca5a183f199f5497f4bdfc7fee07c9 (patch) | |
tree | 1a39c4d6d4648b0717eaad68916f6010140d5dfb /pkgtools | |
parent | 12b77c92f08cbd856ef28cc6818b06c7a41dd236 (diff) | |
download | pkgsrc-1a20bf9fe0ca5a183f199f5497f4bdfc7fee07c9.tar.gz |
Revert: Tokenize the contents of "append_executable"
It's unnecessary and violates the design principles of the
configuration.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/cwrappers/files/bin/common.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/pkgtools/cwrappers/files/bin/common.c b/pkgtools/cwrappers/files/bin/common.c index 0b72bad1bc7..1fa19219be3 100644 --- a/pkgtools/cwrappers/files/bin/common.c +++ b/pkgtools/cwrappers/files/bin/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.8 2017/11/07 16:50:52 khorben Exp $ */ +/* $NetBSD: common.c,v 1.9 2017/11/07 22:26:38 joerg Exp $ */ /*- * Copyright (c) 2009, 2017 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -275,14 +275,9 @@ parse_config(const char *wrapper) TAILQ_INSERT_TAIL(&prepend_executable_args, arg, link); } if (strncmp(line, "append_executable=", 18) == 0) { - char *last, *p; - unsigned int i; struct argument *arg; - for (p = strtok_r(line + 18, " ", &last), i = 0; p; - (p = strtok_r(NULL, " ", &last)), i++) { - arg = argument_copy(p); - TAILQ_INSERT_TAIL(&append_executable_args, arg, link); - } + arg = argument_copy(line + 18); + TAILQ_INSERT_TAIL(&append_executable_args, arg, link); } if (strncmp(line, "prepend_shared=", 15) == 0) { struct argument *arg; |