diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-05-23 13:20:03 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-05-23 13:20:03 +0300 |
commit | 19c12f9e35055e626823c9dd730bd847bfcd2cb4 (patch) | |
tree | a2cef89cf40a6bd65b1592d69499face14f683eb /src | |
parent | bd19f38853dad5a89abada6ee5e7a23c65173894 (diff) | |
download | pies-19c12f9e35055e626823c9dd730bd847bfcd2cb4.tar.gz pies-19c12f9e35055e626823c9dd730bd847bfcd2cb4.tar.bz2 |
Update copyright years
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/acl.c | 2 | ||||
-rw-r--r-- | src/acl.h | 2 | ||||
-rw-r--r-- | src/cmdline.opt | 2 | ||||
-rw-r--r-- | src/comp.c | 65 | ||||
-rw-r--r-- | src/ctl.c | 2 | ||||
-rw-r--r-- | src/depmap.c | 22 | ||||
-rw-r--r-- | src/diag.c | 2 | ||||
-rw-r--r-- | src/inetd-bi.c | 2 | ||||
-rw-r--r-- | src/inetd.c | 2 | ||||
-rw-r--r-- | src/inetd.in | 2 | ||||
-rw-r--r-- | src/limits.c | 2 | ||||
-rw-r--r-- | src/meta1parse.c | 2 | ||||
-rw-r--r-- | src/pies.c | 2 | ||||
-rw-r--r-- | src/pies.h | 2 | ||||
-rw-r--r-- | src/piesctl-cl.opt | 2 | ||||
-rw-r--r-- | src/piesctl.c | 2 | ||||
-rw-r--r-- | src/pp-setup | 2 | ||||
-rw-r--r-- | src/prog.h | 2 | ||||
-rw-r--r-- | src/progman.c | 2 | ||||
-rw-r--r-- | src/socket.c | 2 | ||||
-rw-r--r-- | src/sysdep.c | 2 | ||||
-rw-r--r-- | src/sysvinit.c | 2 | ||||
-rw-r--r-- | src/telinit.opt | 2 | ||||
-rw-r--r-- | src/userprivs.c | 2 | ||||
-rw-r--r-- | src/utmp.c | 2 |
26 files changed, 65 insertions, 70 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 8759451..16f8a75 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -1,5 +1,5 @@ | |||
1 | # This file is part of GNU Pies. | 1 | # This file is part of GNU Pies. |
2 | # Copyright (C) 2008-2017 Sergey Poznyakoff | 2 | # Copyright (C) 2008-2019 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # GNU Pies is free software; you can redistribute it and/or modify | 4 | # GNU Pies is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
@@ -1,5 +1,5 @@ | |||
1 | /* This file is part of GNU Pies | 1 | /* This file is part of GNU Pies |
2 | Copyright (C) 2009-2017 Sergey Poznyakoff | 2 | Copyright (C) 2009-2019 Sergey Poznyakoff |
3 | 3 | ||
4 | GNU Pies is free software; you can redistribute it and/or modify | 4 | GNU Pies is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
@@ -1,5 +1,5 @@ | |||
1 | /* This file is part of GNU Pies | 1 | /* This file is part of GNU Pies |
2 | Copyright (C) 2009-2017 Sergey Poznyakoff | 2 | Copyright (C) 2009-2019 Sergey Poznyakoff |
3 | 3 | ||
4 | GNU Pies is free software; you can redistribute it and/or modify | 4 | GNU Pies is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
diff --git a/src/cmdline.opt b/src/cmdline.opt index 57f5b90..ff560be 100644 --- a/src/cmdline.opt +++ b/src/cmdline.opt | |||
@@ -1,5 +1,5 @@ | |||
1 | /* This file is part of GNU Pies. -*- c -*- | 1 | /* This file is part of GNU Pies. -*- c -*- |
2 | Copyright (C) 2008-2017 Sergey Poznyakoff | 2 | Copyright (C) 2008-2019 Sergey Poznyakoff |
3 | 3 | ||
4 | GNU Pies is free software; you can redistribute it and/or modify | 4 | GNU Pies is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
@@ -1,5 +1,5 @@ | |||
1 | /* This file is part of GNU Pies. | 1 | /* This file is part of GNU Pies. |
2 | Copyright (C) 2016-2017 Sergey Poznyakoff | 2 | Copyright (C) 2016-2019 Sergey Poznyakoff |
3 | 3 | ||
4 | GNU Pies is free software; you can redistribute it and/or modify | 4 | GNU Pies is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
@@ -50,7 +50,7 @@ component_link (struct component *comp, struct component *ref) | |||
50 | if (!ref) | 50 | if (!ref) |
51 | { | 51 | { |
52 | struct complist *list = &comp_list[comp->listidx]; | 52 | struct complist *list = &comp_list[comp->listidx]; |
53 | 53 | ||
54 | comp->prev = NULL; | 54 | comp->prev = NULL; |
55 | comp->next = list->head; | 55 | comp->next = list->head; |
56 | if (list->head) | 56 | if (list->head) |
@@ -68,7 +68,7 @@ component_link (struct component *comp, struct component *ref) | |||
68 | 68 | ||
69 | comp->prev = ref; | 69 | comp->prev = ref; |
70 | comp->next = ref->next; | 70 | comp->next = ref->next; |
71 | 71 | ||
72 | if ((x = ref->next)) | 72 | if ((x = ref->next)) |
73 | x->prev = comp; | 73 | x->prev = comp; |
74 | else | 74 | else |
@@ -89,7 +89,7 @@ component_unlink (struct component *comp) | |||
89 | { | 89 | { |
90 | struct complist *list = &comp_list[comp->listidx]; | 90 | struct complist *list = &comp_list[comp->listidx]; |
91 | struct component *x; | 91 | struct component *x; |
92 | 92 | ||
93 | if ((x = comp->prev)) | 93 | if ((x = comp->prev)) |
94 | x->next = comp->next; | 94 | x->next = comp->next; |
95 | else | 95 | else |
@@ -98,7 +98,7 @@ component_unlink (struct component *comp) | |||
98 | x->prev = comp->prev; | 98 | x->prev = comp->prev; |
99 | else | 99 | else |
100 | list->tail = comp->prev; | 100 | list->tail = comp->prev; |
101 | } | 101 | } |
102 | 102 | ||
103 | int | 103 | int |
104 | component_list_is_empty (void) | 104 | component_list_is_empty (void) |
@@ -129,7 +129,7 @@ component_lookup_index (const char *tag) | |||
129 | return i; | 129 | return i; |
130 | return -1; | 130 | return -1; |
131 | } | 131 | } |
132 | 132 | ||
133 | struct component * | 133 | struct component * |
134 | component_create (const char *name) | 134 | component_create (const char *name) |
135 | { | 135 | { |
@@ -208,10 +208,10 @@ static int | |||
208 | argvcmp (char **a, char **b) | 208 | argvcmp (char **a, char **b) |
209 | { | 209 | { |
210 | size_t i; | 210 | size_t i; |
211 | 211 | ||
212 | if (!a != !b) | 212 | if (!a != !b) |
213 | return 1; | 213 | return 1; |
214 | 214 | ||
215 | for (i = 0; a[i]; i++) | 215 | for (i = 0; a[i]; i++) |
216 | if (!b[i] || strcmp (b[i], a[i])) | 216 | if (!b[i] || strcmp (b[i], a[i])) |
217 | return 1; | 217 | return 1; |
@@ -250,7 +250,7 @@ redirector_cmp (struct redirector const *a, struct redirector const *b) | |||
250 | 250 | ||
251 | return 0; | 251 | return 0; |
252 | } | 252 | } |
253 | 253 | ||
254 | static int | 254 | static int |
255 | component_match (struct component *comp, struct component *ref) | 255 | component_match (struct component *comp, struct component *ref) |
256 | { | 256 | { |
@@ -258,7 +258,7 @@ component_match (struct component *comp, struct component *ref) | |||
258 | #define EQ(memb) MATCH (comp->memb != ref->memb) | 258 | #define EQ(memb) MATCH (comp->memb != ref->memb) |
259 | #define FN(memb,fun) MATCH (fun (comp->memb, ref->memb)) | 259 | #define FN(memb,fun) MATCH (fun (comp->memb, ref->memb)) |
260 | #define FNP(memb,fun) MATCH (fun (&comp->memb, &ref->memb)) | 260 | #define FNP(memb,fun) MATCH (fun (&comp->memb, &ref->memb)) |
261 | 261 | ||
262 | EQ (mode); | 262 | EQ (mode); |
263 | FN (tag, safe_strcmp); | 263 | FN (tag, safe_strcmp); |
264 | FN (program, safe_strcmp); | 264 | FN (program, safe_strcmp); |
@@ -299,7 +299,7 @@ complist_find_match (int idx, struct component *ref) | |||
299 | { | 299 | { |
300 | struct complist *list = &comp_list[idx]; | 300 | struct complist *list = &comp_list[idx]; |
301 | struct component *comp; | 301 | struct component *comp; |
302 | 302 | ||
303 | for (comp = list->head; comp && component_match (comp, ref); | 303 | for (comp = list->head; comp && component_match (comp, ref); |
304 | comp = comp->next) | 304 | comp = comp->next) |
305 | ; | 305 | ; |
@@ -331,7 +331,7 @@ component_merge (struct component *comp, struct component *ref) | |||
331 | pies_acl_free (comp->list_acl); | 331 | pies_acl_free (comp->list_acl); |
332 | comp->list_acl = ref->list_acl; | 332 | comp->list_acl = ref->list_acl; |
333 | ref->list_acl = NULL; | 333 | ref->list_acl = NULL; |
334 | 334 | ||
335 | pies_acl_free (comp->adm_acl); | 335 | pies_acl_free (comp->adm_acl); |
336 | comp->adm_acl = ref->adm_acl; | 336 | comp->adm_acl = ref->adm_acl; |
337 | ref->adm_acl = NULL; | 337 | ref->adm_acl = NULL; |
@@ -396,13 +396,13 @@ static void | |||
396 | report_cyclic_dependency (pies_depmap_t dp, size_t idx) | 396 | report_cyclic_dependency (pies_depmap_t dp, size_t idx) |
397 | { | 397 | { |
398 | size_t i; | 398 | size_t i; |
399 | 399 | ||
400 | i = idx; | 400 | i = idx; |
401 | do | 401 | do |
402 | { | 402 | { |
403 | size_t n; | 403 | size_t n; |
404 | pies_depmap_pos_t pos; | 404 | pies_depmap_pos_t pos; |
405 | 405 | ||
406 | logmsg_printf (LOG_NOTICE, "%s -> ", comp_array[i]->tag); | 406 | logmsg_printf (LOG_NOTICE, "%s -> ", comp_array[i]->tag); |
407 | comp_array[i]->flags |= CF_REMOVE; | 407 | comp_array[i]->flags |= CF_REMOVE; |
408 | for (n = depmap_first (depmap, depmap_col, i, &pos); | 408 | for (n = depmap_first (depmap, depmap_col, i, &pos); |
@@ -422,7 +422,7 @@ report_cyclic_dependency (pies_depmap_t dp, size_t idx) | |||
422 | } | 422 | } |
423 | while (i != idx); | 423 | while (i != idx); |
424 | logmsg_printf (LOG_NOTICE, "%s\n", comp_array[idx]->tag); | 424 | logmsg_printf (LOG_NOTICE, "%s\n", comp_array[idx]->tag); |
425 | } | 425 | } |
426 | 426 | ||
427 | void | 427 | void |
428 | comp_array_remove (size_t i) | 428 | comp_array_remove (size_t i) |
@@ -440,7 +440,7 @@ component_build_depmap (void) | |||
440 | { | 440 | { |
441 | size_t i; | 441 | size_t i; |
442 | pies_depmap_t dp; | 442 | pies_depmap_t dp; |
443 | 443 | ||
444 | free (depmap); | 444 | free (depmap); |
445 | depmap = depmap_alloc (comp_count); | 445 | depmap = depmap_alloc (comp_count); |
446 | for (i = 0; i < comp_count; ) | 446 | for (i = 0; i < comp_count; ) |
@@ -465,7 +465,7 @@ component_build_depmap (void) | |||
465 | } | 465 | } |
466 | depmap_set (depmap, i, tgt); |