pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/cwrappers/files/bin



Module Name:    pkgsrc
Committed By:   joerg
Date:           Tue Nov  7 22:26:38 UTC 2017

Modified Files:
        pkgsrc/pkgtools/cwrappers/files/bin: common.c

Log Message:
Revert: Tokenize the contents of "append_executable"

It's unnecessary and violates the design principles of the
configuration.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/pkgtools/cwrappers/files/bin/common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/cwrappers/files/bin/common.c
diff -u pkgsrc/pkgtools/cwrappers/files/bin/common.c:1.8 pkgsrc/pkgtools/cwrappers/files/bin/common.c:1.9
--- pkgsrc/pkgtools/cwrappers/files/bin/common.c:1.8    Tue Nov  7 16:50:52 2017
+++ pkgsrc/pkgtools/cwrappers/files/bin/common.c        Tue Nov  7 22:26:38 2017
@@ -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@localhost>.
@@ -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;



Home | Main Index | Thread Index | Old Index