diff --git a/lib/util/aix.c b/lib/util/aix.c index f27cc851a..a8bbff19d 100644 --- a/lib/util/aix.c +++ b/lib/util/aix.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/arc4random.c b/lib/util/arc4random.c index 47d29afe6..8935d36db 100644 --- a/lib/util/arc4random.c +++ b/lib/util/arc4random.c @@ -19,8 +19,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * ChaCha based random number generator for OpenBSD. diff --git a/lib/util/arc4random_uniform.c b/lib/util/arc4random_uniform.c index 422d0fca0..51f47147f 100644 --- a/lib/util/arc4random_uniform.c +++ b/lib/util/arc4random_uniform.c @@ -16,8 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/closefrom.c b/lib/util/closefrom.c index 33ce72fe1..60691745e 100644 --- a/lib/util/closefrom.c +++ b/lib/util/closefrom.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/digest.c b/lib/util/digest.c index 6bdb02d45..f81d463ae 100644 --- a/lib/util/digest.c +++ b/lib/util/digest.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/digest_gcrypt.c b/lib/util/digest_gcrypt.c index f4bc500c2..7d12fe2e7 100644 --- a/lib/util/digest_gcrypt.c +++ b/lib/util/digest_gcrypt.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/digest_openssl.c b/lib/util/digest_openssl.c index bc83b48fb..af096844a 100644 --- a/lib/util/digest_openssl.c +++ b/lib/util/digest_openssl.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/event.c b/lib/util/event.c index 8f92f9091..05b3fd00b 100644 --- a/lib/util/event.c +++ b/lib/util/event.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/event_poll.c b/lib/util/event_poll.c index 9f31a3207..22cda2413 100644 --- a/lib/util/event_poll.c +++ b/lib/util/event_poll.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/event_select.c b/lib/util/event_select.c index 24aab0d4d..a7336331d 100644 --- a/lib/util/event_select.c +++ b/lib/util/event_select.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/fatal.c b/lib/util/fatal.c index 73f105726..77b1a85b3 100644 --- a/lib/util/fatal.c +++ b/lib/util/fatal.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/fnmatch.c b/lib/util/fnmatch.c index 785e8062d..3526fdab3 100644 --- a/lib/util/fnmatch.c +++ b/lib/util/fnmatch.c @@ -42,8 +42,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* Authored by William A. Rowe Jr. , April 2011 * diff --git a/lib/util/getentropy.c b/lib/util/getentropy.c index 1c7470a3e..bfd7dcd82 100644 --- a/lib/util/getentropy.c +++ b/lib/util/getentropy.c @@ -158,8 +158,10 @@ sudo_getentropy(void *buf, size_t len) return (ret); } -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Basic sanity checking; wish we could do better. diff --git a/lib/util/getgrouplist.c b/lib/util/getgrouplist.c index ecc82e506..253736385 100644 --- a/lib/util/getgrouplist.c +++ b/lib/util/getgrouplist.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/gethostname.c b/lib/util/gethostname.c index c2a6a4176..ed5061c28 100644 --- a/lib/util/gethostname.c +++ b/lib/util/gethostname.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/getline.c b/lib/util/getline.c index 636cc151a..153037b35 100644 --- a/lib/util/getline.c +++ b/lib/util/getline.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/getopt_long.c b/lib/util/getopt_long.c index 7f249065d..d88c3a574 100644 --- a/lib/util/getopt_long.c +++ b/lib/util/getopt_long.c @@ -22,8 +22,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. diff --git a/lib/util/gettime.c b/lib/util/gettime.c index d3e31d83d..f4d4664c3 100644 --- a/lib/util/gettime.c +++ b/lib/util/gettime.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/gidlist.c b/lib/util/gidlist.c index 17118783a..1adf9bc3b 100644 --- a/lib/util/gidlist.c +++ b/lib/util/gidlist.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/isblank.c b/lib/util/isblank.c index b2545ef76..54f88a563 100644 --- a/lib/util/isblank.c +++ b/lib/util/isblank.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/key_val.c b/lib/util/key_val.c index a5788651c..9bbd0436b 100644 --- a/lib/util/key_val.c +++ b/lib/util/key_val.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/lbuf.c b/lib/util/lbuf.c index 20fd533ae..5e4825815 100644 --- a/lib/util/lbuf.c +++ b/lib/util/lbuf.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/locking.c b/lib/util/locking.c index 95bdae1d1..64499e622 100644 --- a/lib/util/locking.c +++ b/lib/util/locking.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/memrchr.c b/lib/util/memrchr.c index 98103b101..225b542a9 100644 --- a/lib/util/memrchr.c +++ b/lib/util/memrchr.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/memset_s.c b/lib/util/memset_s.c index e6c0d60a6..2fea12db2 100644 --- a/lib/util/memset_s.c +++ b/lib/util/memset_s.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/mksiglist.c b/lib/util/mksiglist.c index 90e885780..6b5d1ca1f 100644 --- a/lib/util/mksiglist.c +++ b/lib/util/mksiglist.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/mksigname.c b/lib/util/mksigname.c index 5145f3044..535ef467d 100644 --- a/lib/util/mksigname.c +++ b/lib/util/mksigname.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/mktemp.c b/lib/util/mktemp.c index 80f618562..f153924fa 100644 --- a/lib/util/mktemp.c +++ b/lib/util/mktemp.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/nanosleep.c b/lib/util/nanosleep.c index 4f4ac7c7a..7c09b5bbb 100644 --- a/lib/util/nanosleep.c +++ b/lib/util/nanosleep.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/parseln.c b/lib/util/parseln.c index 8af54aea3..ec345a361 100644 --- a/lib/util/parseln.c +++ b/lib/util/parseln.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/pipe2.c b/lib/util/pipe2.c index 32f5394f8..89a904c47 100644 --- a/lib/util/pipe2.c +++ b/lib/util/pipe2.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/progname.c b/lib/util/progname.c index 943275c06..ffe946c3f 100644 --- a/lib/util/progname.c +++ b/lib/util/progname.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/pw_dup.c b/lib/util/pw_dup.c index 4f892faa3..4257adf08 100644 --- a/lib/util/pw_dup.c +++ b/lib/util/pw_dup.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/reallocarray.c b/lib/util/reallocarray.c index fe04e4625..ee2ef4ad9 100644 --- a/lib/util/reallocarray.c +++ b/lib/util/reallocarray.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/regress/atofoo/atofoo_test.c b/lib/util/regress/atofoo/atofoo_test.c index 745d1b1c8..1ad78ebd6 100644 --- a/lib/util/regress/atofoo/atofoo_test.c +++ b/lib/util/regress/atofoo/atofoo_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/getgrouplist/getgrouplist_test.c b/lib/util/regress/getgrouplist/getgrouplist_test.c index 1a749dfcb..02edabdfa 100644 --- a/lib/util/regress/getgrouplist/getgrouplist_test.c +++ b/lib/util/regress/getgrouplist/getgrouplist_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/parse_gids/parse_gids_test.c b/lib/util/regress/parse_gids/parse_gids_test.c index 561845157..674bd96af 100644 --- a/lib/util/regress/parse_gids/parse_gids_test.c +++ b/lib/util/regress/parse_gids/parse_gids_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/progname/progname_test.c b/lib/util/regress/progname/progname_test.c index 0f3bae73c..37c5c22f4 100644 --- a/lib/util/regress/progname/progname_test.c +++ b/lib/util/regress/progname/progname_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/strsplit/strsplit_test.c b/lib/util/regress/strsplit/strsplit_test.c index b0b94d401..c9aecdae4 100644 --- a/lib/util/regress/strsplit/strsplit_test.c +++ b/lib/util/regress/strsplit/strsplit_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/sudo_conf/conf_test.c b/lib/util/regress/sudo_conf/conf_test.c index 4e6086a77..534b1df09 100644 --- a/lib/util/regress/sudo_conf/conf_test.c +++ b/lib/util/regress/sudo_conf/conf_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/sudo_parseln/parseln_test.c b/lib/util/regress/sudo_parseln/parseln_test.c index 11fef14b9..ac46dd8dd 100644 --- a/lib/util/regress/sudo_parseln/parseln_test.c +++ b/lib/util/regress/sudo_parseln/parseln_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/tailq/hltq_test.c b/lib/util/regress/tailq/hltq_test.c index c779439be..5333a15d1 100644 --- a/lib/util/regress/tailq/hltq_test.c +++ b/lib/util/regress/tailq/hltq_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/regress/vsyslog/vsyslog_test.c b/lib/util/regress/vsyslog/vsyslog_test.c index b26fd8b63..70a8d0dd2 100644 --- a/lib/util/regress/vsyslog/vsyslog_test.c +++ b/lib/util/regress/vsyslog/vsyslog_test.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/lib/util/secure_path.c b/lib/util/secure_path.c index 8b5a7cb08..b1d4415c8 100644 --- a/lib/util/secure_path.c +++ b/lib/util/secure_path.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/setgroups.c b/lib/util/setgroups.c index 8556d8aa3..9b81456ce 100644 --- a/lib/util/setgroups.c +++ b/lib/util/setgroups.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/sha2.c b/lib/util/sha2.c index 43fc390dc..9a172e309 100644 --- a/lib/util/sha2.c +++ b/lib/util/sha2.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Implementation of SHA-224, SHA-256, SHA-384 and SHA-512 diff --git a/lib/util/sig2str.c b/lib/util/sig2str.c index a52eddd99..a6d4c1ac4 100644 --- a/lib/util/sig2str.c +++ b/lib/util/sig2str.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strlcat.c b/lib/util/strlcat.c index b10375334..fee8dc18f 100644 --- a/lib/util/strlcat.c +++ b/lib/util/strlcat.c @@ -17,8 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strlcpy.c b/lib/util/strlcpy.c index 15e19e9d0..ea8ab4d6e 100644 --- a/lib/util/strlcpy.c +++ b/lib/util/strlcpy.c @@ -17,8 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strndup.c b/lib/util/strndup.c index 3395d30e8..5d9ea5a9d 100644 --- a/lib/util/strndup.c +++ b/lib/util/strndup.c @@ -16,8 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strnlen.c b/lib/util/strnlen.c index 2eda328d9..7344e9fd6 100644 --- a/lib/util/strnlen.c +++ b/lib/util/strnlen.c @@ -16,8 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strsignal.c b/lib/util/strsignal.c index d130b8df7..a6f9eea87 100644 --- a/lib/util/strsignal.c +++ b/lib/util/strsignal.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strsplit.c b/lib/util/strsplit.c index 10bb56ff7..728f225fb 100644 --- a/lib/util/strsplit.c +++ b/lib/util/strsplit.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strtobool.c b/lib/util/strtobool.c index bc948751d..74a6fd3c0 100644 --- a/lib/util/strtobool.c +++ b/lib/util/strtobool.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strtoid.c b/lib/util/strtoid.c index e09f1a4ca..2339a88df 100644 --- a/lib/util/strtoid.c +++ b/lib/util/strtoid.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strtomode.c b/lib/util/strtomode.c index db4611b2b..5a1ec941f 100644 --- a/lib/util/strtomode.c +++ b/lib/util/strtomode.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/strtonum.c b/lib/util/strtonum.c index 578fe6b06..aedbc02da 100644 --- a/lib/util/strtonum.c +++ b/lib/util/strtonum.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/sudo_conf.c b/lib/util/sudo_conf.c index 2b2280301..1af69293f 100644 --- a/lib/util/sudo_conf.c +++ b/lib/util/sudo_conf.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/sudo_debug.c b/lib/util/sudo_debug.c index d450530b5..593af92e2 100644 --- a/lib/util/sudo_debug.c +++ b/lib/util/sudo_debug.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/sudo_dso.c b/lib/util/sudo_dso.c index 31054a97d..39d438105 100644 --- a/lib/util/sudo_dso.c +++ b/lib/util/sudo_dso.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/term.c b/lib/util/term.c index 3655f2ef6..5151ffd49 100644 --- a/lib/util/term.c +++ b/lib/util/term.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/ttyname_dev.c b/lib/util/ttyname_dev.c index 061ed94d8..3d8e20af3 100644 --- a/lib/util/ttyname_dev.c +++ b/lib/util/ttyname_dev.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/ttysize.c b/lib/util/ttysize.c index cf303862e..66fa1463f 100644 --- a/lib/util/ttysize.c +++ b/lib/util/ttysize.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/utimens.c b/lib/util/utimens.c index eac4f121d..7cbe250f3 100644 --- a/lib/util/utimens.c +++ b/lib/util/utimens.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/lib/util/vsyslog.c b/lib/util/vsyslog.c index a99ea069f..359a8f353 100644 --- a/lib/util/vsyslog.c +++ b/lib/util/vsyslog.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/group_file/getgrent.c b/plugins/group_file/getgrent.c index 2fe32586b..bcfd17fd3 100644 --- a/plugins/group_file/getgrent.c +++ b/plugins/group_file/getgrent.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Trivial replacements for the libc getgr{uid,nam}() routines. diff --git a/plugins/group_file/group_file.c b/plugins/group_file/group_file.c index 1ecd8f34c..f7621b3c0 100644 --- a/plugins/group_file/group_file.c +++ b/plugins/group_file/group_file.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/group_file/plugin_test.c b/plugins/group_file/plugin_test.c index 5f275e8ae..129264a15 100644 --- a/plugins/group_file/plugin_test.c +++ b/plugins/group_file/plugin_test.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sample/sample_plugin.c b/plugins/sample/sample_plugin.c index 2fc617a18..7baaa313e 100644 --- a/plugins/sample/sample_plugin.c +++ b/plugins/sample/sample_plugin.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/Makefile.in b/plugins/sudoers/Makefile.in index 222258997..82d6c7ee2 100644 --- a/plugins/sudoers/Makefile.in +++ b/plugins/sudoers/Makefile.in @@ -329,29 +329,37 @@ check_wrap: $(CHECK_WRAP_OBJS) $(LT_LIBS) GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate.c -$(devdir)/gram.c $(devdir)/gram.h: $(srcdir)/gram.y +prologue: + echo "/*" > $@ + echo " * This is an open source non-commercial project. Dear PVS-Studio, please check it." >> $@ + echo " * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com" >> $@ + echo " */" >> $@ + echo "" >> $@ + echo "#include " >> $@ + +$(devdir)/gram.c $(devdir)/gram.h: $(srcdir)/gram.y prologue @if [ -n "$(DEVEL)" ]; then \ if test "$(srcdir)" = "."; then \ gram_y="gram.y"; \ else \ gram_y="$(srcdir)/gram.y"; \ fi; \ - cmd='$(YACC) -d -p sudoers '"$$gram_y"'; echo "// This is an open source non-commercial project. Dear PVS-Studio, please check it." > $(devdir)/gram.c; echo "// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com" >> $(devdir)/gram.c; echo "#include " >> $(devdir)/gram.c; $(SED) "s/^\\(#line .*\\) \"y\\.tab\\.c\"/\1 \"gram.c\"/" y.tab.c >> $(devdir)/gram.c; rm -f y.tab.c; mv -f y.tab.h $(devdir)/gram.h'; \ + cmd='$(YACC) -d -p sudoers '"$$gram_y"'; cp prologue $(devdir)/gram.c; $(SED) "s/^\\(#line .*\\) \"y\\.tab\\.c\"/\1 \"gram.c\"/" y.tab.c >> $(devdir)/gram.c; rm -f y.tab.c; mv -f y.tab.h $(devdir)/gram.h'; \ echo "$$cmd"; eval $$cmd; \ fi -$(devdir)/toke.c: $(srcdir)/toke.l +$(devdir)/toke.c: $(srcdir)/toke.l prologue @if [ -n "$(DEVEL)" ]; then \ if test "$(srcdir)" = "."; then \ toke_l="toke.l"; \ else \ toke_l="$(srcdir)/toke.l"; \ fi; \ - cmd='$(FLEX) '"$$toke_l"'; echo "// This is an open source non-commercial project. Dear PVS-Studio, please check it." > $(devdir)/toke.c; echo "// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com" >> $(devdir)/toke.c; echo "#include " >> $(devdir)/toke.c; $(SED) "s/^\\(#line .*\\) \"lex\\.sudoers\\.c\"/\1 \"toke.c\"/" lex.sudoers.c >> $(devdir)/toke.c; rm -f lex.sudoers.c'; \ + cmd='$(FLEX) '"$$toke_l"'; cp prologue $(devdir)/toke.c; $(SED) "s/^\\(#line .*\\) \"lex\\.sudoers\\.c\"/\1 \"toke.c\"/" lex.sudoers.c >> $(devdir)/toke.c; rm -f lex.sudoers.c'; \ echo "$$cmd"; eval $$cmd; \ fi -$(devdir)/getdate.c: $(srcdir)/getdate.y +$(devdir)/getdate.c: $(srcdir)/getdate.y prologue @if [ -n "$(DEVEL)" ]; then \ echo "expect 10 shift/reduce conflicts"; \ if test "$(srcdir)" = "."; then \ @@ -359,7 +367,7 @@ $(devdir)/getdate.c: $(srcdir)/getdate.y else \ getdate_y="$(srcdir)/getdate.y"; \ fi; \ - cmd='$(YACC) '"$$getdate_y"'; echo "// This is an open source non-commercial project. Dear PVS-Studio, please check it." > $(devdir)/getdate.c; echo "// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com" >> $(devdir)/getdate.c; echo "#include " >> $(devdir)/getdate.c; $(SED) "s/^\\(#line .*\\) \"y\\.tab\\.c\"/\1 \"getdate.c\"/" y.tab.c >> $(devdir)/getdate.c; rm -f y.tab.c'; \ + cmd='$(YACC) '"$$getdate_y"'; cp prologue $(devdir)/getdate.c; $(SED) "s/^\\(#line .*\\) \"y\\.tab\\.c\"/\1 \"getdate.c\"/" y.tab.c >> $(devdir)/getdate.c; rm -f y.tab.c'; \ echo "$$cmd"; eval $$cmd; \ fi @@ -593,8 +601,8 @@ check: $(TEST_PROGS) visudo testsudoers cvtsudoers clean: -$(LIBTOOL) $(LTFLAGS) --mode=clean rm -f $(PROGS) $(TEST_PROGS) \ *.lo *.o *.la *.a *.i *.plog stamp-* core *.core core.* \ - regress/*/*.out regress/*/*.toke regress/*/*.err regress/*/*.json \ - regress/*/*.ldif regress/*/*.sudo + prologue regress/*/*.out regress/*/*.toke regress/*/*.err \ + regress/*/*.json regress/*/*.ldif regress/*/*.sudo mostlyclean: clean diff --git a/plugins/sudoers/alias.c b/plugins/sudoers/alias.c index 7f5c55e77..a5b4573d0 100644 --- a/plugins/sudoers/alias.c +++ b/plugins/sudoers/alias.c @@ -15,11 +15,15 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/audit.c b/plugins/sudoers/audit.c index 46a2397d4..1b802c303 100644 --- a/plugins/sudoers/audit.c +++ b/plugins/sudoers/audit.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/afs.c b/plugins/sudoers/auth/afs.c index 48ffabace..fa40e05d4 100644 --- a/plugins/sudoers/auth/afs.c +++ b/plugins/sudoers/auth/afs.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/aix_auth.c b/plugins/sudoers/auth/aix_auth.c index f2639c1ec..b4dc052df 100644 --- a/plugins/sudoers/auth/aix_auth.c +++ b/plugins/sudoers/auth/aix_auth.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/bsdauth.c b/plugins/sudoers/auth/bsdauth.c index 5bffa6847..73572148b 100644 --- a/plugins/sudoers/auth/bsdauth.c +++ b/plugins/sudoers/auth/bsdauth.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/dce.c b/plugins/sudoers/auth/dce.c index d311634b5..0afe8c659 100644 --- a/plugins/sudoers/auth/dce.c +++ b/plugins/sudoers/auth/dce.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * The code below basically comes from the examples supplied on * the OSF DCE 1.0.3 manpages for the sec_login routines, with diff --git a/plugins/sudoers/auth/fwtk.c b/plugins/sudoers/auth/fwtk.c index 35329f258..36f7cd830 100644 --- a/plugins/sudoers/auth/fwtk.c +++ b/plugins/sudoers/auth/fwtk.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/kerb5.c b/plugins/sudoers/auth/kerb5.c index 2af26047c..247981cad 100644 --- a/plugins/sudoers/auth/kerb5.c +++ b/plugins/sudoers/auth/kerb5.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/pam.c b/plugins/sudoers/auth/pam.c index 993be54e0..f7c6b33c2 100644 --- a/plugins/sudoers/auth/pam.c +++ b/plugins/sudoers/auth/pam.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/passwd.c b/plugins/sudoers/auth/passwd.c index 1fc58e7e6..e7093ab64 100644 --- a/plugins/sudoers/auth/passwd.c +++ b/plugins/sudoers/auth/passwd.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/rfc1938.c b/plugins/sudoers/auth/rfc1938.c index 22128ff43..2a5a55be3 100644 --- a/plugins/sudoers/auth/rfc1938.c +++ b/plugins/sudoers/auth/rfc1938.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/secureware.c b/plugins/sudoers/auth/secureware.c index b56187b64..dc6000238 100644 --- a/plugins/sudoers/auth/secureware.c +++ b/plugins/sudoers/auth/secureware.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/securid5.c b/plugins/sudoers/auth/securid5.c index 8789e79d4..ca75c5650 100644 --- a/plugins/sudoers/auth/securid5.c +++ b/plugins/sudoers/auth/securid5.c @@ -20,8 +20,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/sia.c b/plugins/sudoers/auth/sia.c index b5b1dbdf8..8e74de838 100644 --- a/plugins/sudoers/auth/sia.c +++ b/plugins/sudoers/auth/sia.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c index 12c17398a..be70f933c 100644 --- a/plugins/sudoers/auth/sudo_auth.c +++ b/plugins/sudoers/auth/sudo_auth.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/base64.c b/plugins/sudoers/base64.c index 75f7f6a7a..af170e34b 100644 --- a/plugins/sudoers/base64.c +++ b/plugins/sudoers/base64.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/boottime.c b/plugins/sudoers/boottime.c index 26a2cedf6..ff409aece 100644 --- a/plugins/sudoers/boottime.c +++ b/plugins/sudoers/boottime.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/bsm_audit.c b/plugins/sudoers/bsm_audit.c index 8369965d6..c0a8de4a7 100644 --- a/plugins/sudoers/bsm_audit.c +++ b/plugins/sudoers/bsm_audit.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index feda48098..92f859c61 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/cvtsudoers.c b/plugins/sudoers/cvtsudoers.c index c856e9609..795936c16 100644 --- a/plugins/sudoers/cvtsudoers.c +++ b/plugins/sudoers/cvtsudoers.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Convert from the sudoers file format to LDIF or JSON format. diff --git a/plugins/sudoers/cvtsudoers_json.c b/plugins/sudoers/cvtsudoers_json.c index aa6295ba8..5fbef1c68 100644 --- a/plugins/sudoers/cvtsudoers_json.c +++ b/plugins/sudoers/cvtsudoers_json.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/cvtsudoers_ldif.c b/plugins/sudoers/cvtsudoers_ldif.c index 4f573be16..0f43a5afc 100644 --- a/plugins/sudoers/cvtsudoers_ldif.c +++ b/plugins/sudoers/cvtsudoers_ldif.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/cvtsudoers_pwutil.c b/plugins/sudoers/cvtsudoers_pwutil.c index 1fc0b47b7..49715a3b5 100644 --- a/plugins/sudoers/cvtsudoers_pwutil.c +++ b/plugins/sudoers/cvtsudoers_pwutil.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/defaults.c b/plugins/sudoers/defaults.c index 802556ae0..4c8c262f8 100644 --- a/plugins/sudoers/defaults.c +++ b/plugins/sudoers/defaults.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/digestname.c b/plugins/sudoers/digestname.c index 3278986ad..a078edeb5 100644 --- a/plugins/sudoers/digestname.c +++ b/plugins/sudoers/digestname.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/editor.c b/plugins/sudoers/editor.c index e8e980dee..ec8e7b02c 100644 --- a/plugins/sudoers/editor.c +++ b/plugins/sudoers/editor.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c index 2eabf3765..0aee73fec 100644 --- a/plugins/sudoers/env.c +++ b/plugins/sudoers/env.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/env_pattern.c b/plugins/sudoers/env_pattern.c index e57a5852e..a74515b41 100644 --- a/plugins/sudoers/env_pattern.c +++ b/plugins/sudoers/env_pattern.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/file.c b/plugins/sudoers/file.c index a4deb3357..a8b02b32d 100644 --- a/plugins/sudoers/file.c +++ b/plugins/sudoers/file.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/filedigest.c b/plugins/sudoers/filedigest.c index 73478c4ab..764e35eba 100644 --- a/plugins/sudoers/filedigest.c +++ b/plugins/sudoers/filedigest.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/find_path.c b/plugins/sudoers/find_path.c index e8fa87186..70b921837 100644 --- a/plugins/sudoers/find_path.c +++ b/plugins/sudoers/find_path.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/fmtsudoers.c b/plugins/sudoers/fmtsudoers.c index 5270fa3bb..8c73f9c4a 100644 --- a/plugins/sudoers/fmtsudoers.c +++ b/plugins/sudoers/fmtsudoers.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/gc.c b/plugins/sudoers/gc.c index 97a6d37fe..1c14b715d 100644 --- a/plugins/sudoers/gc.c +++ b/plugins/sudoers/gc.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/gentime.c b/plugins/sudoers/gentime.c index 66bd37429..eea459511 100644 --- a/plugins/sudoers/gentime.c +++ b/plugins/sudoers/gentime.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/getdate.c b/plugins/sudoers/getdate.c index 0700eab94..a625d046c 100644 --- a/plugins/sudoers/getdate.c +++ b/plugins/sudoers/getdate.c @@ -1,5 +1,7 @@ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include #include diff --git a/plugins/sudoers/getspwuid.c b/plugins/sudoers/getspwuid.c index 6fc1be0a3..da7776995 100644 --- a/plugins/sudoers/getspwuid.c +++ b/plugins/sudoers/getspwuid.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/gmtoff.c b/plugins/sudoers/gmtoff.c index 5767b5b8a..2e62d9f11 100644 --- a/plugins/sudoers/gmtoff.c +++ b/plugins/sudoers/gmtoff.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/goodpath.c b/plugins/sudoers/goodpath.c index 1692e4df1..a570e480e 100644 --- a/plugins/sudoers/goodpath.c +++ b/plugins/sudoers/goodpath.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/gram.c b/plugins/sudoers/gram.c index b59da80fc..fff971b64 100644 --- a/plugins/sudoers/gram.c +++ b/plugins/sudoers/gram.c @@ -1,5 +1,7 @@ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include #include @@ -114,7 +116,7 @@ static bool add_userspec(struct member *, struct privilege *); static struct defaults *new_default(char *, char *, short); static struct member *new_member(char *, int); static struct command_digest *new_digest(int, char *); -#line 80 "gram.y" +#line 78 "gram.y" #ifndef YYSTYPE_DEFINED #define YYSTYPE_DEFINED typedef union { @@ -131,7 +133,7 @@ typedef union { int tok; } YYSTYPE; #endif /* YYSTYPE_DEFINED */ -#line 133 "gram.c" +#line 131 "gram.c" #define COMMAND 257 #define ALIAS 258 #define DEFVAR 259 @@ -671,7 +673,7 @@ short *yysslim; YYSTYPE *yyvs; unsigned int yystacksize; int yyparse(void); -#line 906 "gram.y" +#line 904 "gram.y" void sudoerserror(const char *s) { @@ -1096,7 +1098,7 @@ init_options(struct command_options *opts) opts->limitprivs = NULL; #endif } -#line 1046 "gram.c" +#line 1044 "gram.c" /* allocate initial stack or double stack size, up to YYMAXDEPTH */ #if defined(__cplusplus) || defined(__STDC__) static int yygrowstack(void) @@ -1305,23 +1307,23 @@ yyreduce: switch (yyn) { case 1: -#line 178 "gram.y" +#line 176 "gram.y" { ; } break; case 5: -#line 186 "gram.y" +#line 184 "gram.y" { ; } break; case 6: -#line 189 "gram.y" +#line 187 "gram.y" { yyerrok; } break; case 7: -#line 192 "gram.y" +#line 190 "gram.y" { if (!add_userspec(yyvsp[-1].member, yyvsp[0].privilege)) { sudoerserror(N_("unable to allocate memory")); @@ -1330,73 +1332,73 @@ case 7: } break; case 8: -#line 198 "gram.y" +#line 196 "gram.y" { ; } break; case 9: -#line 201 "gram.y" +#line 199 "gram.y" { ; } break; case 10: -#line 204 "gram.y" +#line 202 "gram.y" { ; } break; case 11: -#line 207 "gram.y" +#line 205 "gram.y" { ; } break; case 12: -#line 210 "gram.y" +#line 208 "gram.y" { if (!add_defaults(DEFAULTS, NULL, yyvsp[0].defaults)) YYERROR; } break; case 13: -#line 214 "gram.y" +#line 212 "gram.y" { if (!add_defaults(DEFAULTS_USER, yyvsp[-1].member, yyvsp[0].defaults)) YYERROR; } break; case 14: -#line 218 "gram.y" +#line 216 "gram.y" { if (!add_defaults(DEFAULTS_RUNAS, yyvsp[-1].member, yyvsp[0].defaults)) YYERROR; } break; case 15: -#line 222 "gram.y" +#line 220 "gram.y" { if (!add_defaults(DEFAULTS_HOST, yyvsp[-1].member, yyvsp[0].defaults)) YYERROR; } break; case 16: -#line 226 "gram.y" +#line 224 "gram.y" { if (!add_defaults(DEFAULTS_CMND, yyvsp[-1].member, yyvsp[0].defaults)) YYERROR; } break; case 18: -#line 233 "gram.y" +#line 231 "gram.y" { HLTQ_CONCAT(yyvsp[-2].defaults, yyvsp[0].defaults, entries); yyval.defaults = yyvsp[-2].defaults; } break; case 19: -#line 239 "gram.y" +#line 237 "gram.y" { yyval.defaults = new_default(yyvsp[0].string, NULL, true); if (yyval.defaults == NULL) { @@ -1406,7 +1408,7 @@ case 19: } break; case 20: -#line 246 "gram.y" +#line 244 "gram.y" { yyval.defaults = new_default(yyvsp[0].string, NULL, false); if (yyval.defaults == NULL) { @@ -1416,7 +1418,7 @@ case 20: } break; case 21: -#line 253 "gram.y" +#line 251 "gram.y" { yyval.defaults = new_default(yyvsp[-2].string, yyvsp[0].string, true); if (yyval.defaults == NULL) { @@ -1426,7 +1428,7 @@ case 21: } break; case 22: -#line 260 "gram.y" +#line 258 "gram.y" { yyval.defaults = new_default(yyvsp[-2].string, yyvsp[0].string, '+'); if (yyval.defaults == NULL) { @@ -1436,7 +1438,7 @@ case 22: } break; case 23: -#line 267 "gram.y" +#line 265 "gram.y" { yyval.defaults = new_default(yyvsp[-2].string, yyvsp[0].string, '-'); if (yyval.defaults == NULL) { @@ -1446,14 +1448,14 @@ case 23: } break; case 25: -#line 277 "gram.y" +#line 275 "gram.y" { HLTQ_CONCAT(yyvsp[-2].privilege, yyvsp[0].privilege, entries); yyval.privilege = yyvsp[-2].privilege; } break; case 26: -#line 283 "gram.y" +#line 281 "gram.y" { struct privilege *p = calloc(1, sizeof(*p)); if (p == NULL) { @@ -1468,21 +1470,21 @@ case 26: } break; case 27: -#line 297 "gram.y" +#line 295 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = false; } break; case 28: -#line 301 "gram.y" +#line 299 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = true; } break; case 29: -#line 307 "gram.y" +#line 305 "gram.y" { yyval.member = new_member(yyvsp[0].string, ALIAS); if (yyval.member == NULL) { @@ -1492,7 +1494,7 @@ case 29: } break; case 30: -#line 314 "gram.y" +#line 312 "gram.y" { yyval.member = new_member(NULL, ALL); if (yyval.member == NULL) { @@ -1502,7 +1504,7 @@ case 30: } break; case 31: -#line 321 "gram.y" +#line 319 "gram.y" { yyval.member = new_member(yyvsp[0].string, NETGROUP); if (yyval.member == NULL) { @@ -1512,7 +1514,7 @@ case 31: } break; case 32: -#line 328 "gram.y" +#line 326 "gram.y" { yyval.member = new_member(yyvsp[0].string, NTWKADDR); if (yyval.member == NULL) { @@ -1522,7 +1524,7 @@ case 32: } break; case 33: -#line 335 "gram.y" +#line 333 "gram.y" { yyval.member = new_member(yyvsp[0].string, WORD); if (yyval.member == NULL) { @@ -1532,7 +1534,7 @@ case 33: } break; case 35: -#line 345 "gram.y" +#line 343 "gram.y" { struct cmndspec *prev; prev = HLTQ_LAST(yyvsp[-2].cmndspec, cmndspec, entries); @@ -1586,7 +1588,7 @@ case 35: } break; case 36: -#line 398 "gram.y" +#line 396 "gram.y" { struct cmndspec *cs = calloc(1, sizeof(*cs)); if (cs == NULL) { @@ -1638,7 +1640,7 @@ case 36: } break; case 37: -#line 449 "gram.y" +#line 447 "gram.y" { yyval.digest = new_digest(SUDO_DIGEST_SHA224, yyvsp[0].string); if (yyval.digest == NULL) { @@ -1648,7 +1650,7 @@ case 37: } break; case 38: -#line 456 "gram.y" +#line 454 "gram.y" { yyval.digest = new_digest(SUDO_DIGEST_SHA256, yyvsp[0].string); if (yyval.digest == NULL) { @@ -1658,7 +1660,7 @@ case 38: } break; case 39: -#line 463 "gram.y" +#line 461 "gram.y" { yyval.digest = new_digest(SUDO_DIGEST_SHA384, yyvsp[0].string); if (yyval.digest == NULL) { @@ -1668,7 +1670,7 @@ case 39: } break; case 40: -#line 470 "gram.y" +#line 468 "gram.y" { yyval.digest = new_digest(SUDO_DIGEST_SHA512, yyvsp[0].string); if (yyval.digest == NULL) { @@ -1678,13 +1680,13 @@ case 40: } break; case 41: -#line 479 "gram.y" +#line 477 "gram.y" { yyval.member = yyvsp[0].member; } break; case 42: -#line 482 "gram.y" +#line 480 "gram.y" { if (yyvsp[0].member->type != COMMAND) { sudoerserror(N_("a digest requires a path name")); @@ -1696,75 +1698,75 @@ case 42: } break; case 43: -#line 493 "gram.y" +#line 491 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = false; } break; case 44: -#line 497 "gram.y" +#line 495 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = true; } break; case 45: -#line 503 "gram.y" +#line 501 "gram.y" { yyval.string = yyvsp[0].string; } break; case 46: -#line 508 "gram.y" +#line 506 "gram.y" { yyval.string = yyvsp[0].string; } break; case 47: -#line 512 "gram.y" +#line 510 "gram.y" { yyval.string = yyvsp[0].string; } break; case 48: -#line 517 "gram.y" +#line 515 "gram.y" { yyval.string = yyvsp[0].string; } break; case 49: -#line 522 "gram.y" +#line 520 "gram.y" { yyval.string = yyvsp[0].string; } break; case 50: -#line 527 "gram.y" +#line 525 "gram.y" { yyval.string = yyvsp[0].string; } break; case 51: -#line 531 "gram.y" +#line 529 "gram.y" { yyval.string = yyvsp[0].string; } break; case 52: -#line 536 "gram.y" +#line 534 "gram.y" { yyval.runas = NULL; } break; case 53: -#line 539 "gram.y" +#line 537 "gram.y" { yyval.runas = yyvsp[-1].runas; } break; case 54: -#line 544 "gram.y" +#line 542 "gram.y" { yyval.runas = calloc(1, sizeof(struct runascontainer)); if (yyval.runas != NULL) { @@ -1782,7 +1784,7 @@ case 54: } break; case 55: -#line 559 "gram.y" +#line 557 "gram.y" { yyval.runas = calloc(1, sizeof(struct runascontainer)); if (yyval.runas == NULL) { @@ -1794,7 +1796,7 @@ case 55: } break; case 56: -#line 568 "gram.y" +#line 566 "gram.y" { yyval.runas = calloc(1, sizeof(struct runascontainer)); if (yyval.runas == NULL) { @@ -1806,7 +1808,7 @@ case 56: } break; case 57: -#line 577 "gram.y" +#line 575 "gram.y" { yyval.runas = calloc(1, sizeof(struct runascontainer)); if (yyval.runas == NULL) { @@ -1818,7 +1820,7 @@ case 57: } break; case 58: -#line 586 "gram.y" +#line 584 "gram.y" { yyval.runas = calloc(1, sizeof(struct runascontainer)); if (yyval.runas != NULL) { @@ -1836,13 +1838,13 @@ case 58: } break; case 59: -#line 603 "gram.y" +#line 601 "gram.y" { init_options(&yyval.options); } break; case 60: -#line 606 "gram.y" +#line 604 "gram.y" { yyval.options.notbefore = parse_gentime(yyvsp[0].string); free(yyvsp[0].string); @@ -1853,7 +1855,7 @@ case 60: } break; case 61: -#line 614 "gram.y" +#line 612 "gram.y" { yyval.options.notafter = parse_gentime(yyvsp[0].string); free(yyvsp[0].string); @@ -1864,7 +1866,7 @@ case 61: } break; case 62: -#line 622 "gram.y" +#line 620 "gram.y" { yyval.options.timeout = parse_timeout(yyvsp[0].string); free(yyvsp[0].string); @@ -1878,7 +1880,7 @@ case 62: } break; case 63: -#line 633 "gram.y" +#line 631 "gram.y" { #ifdef HAVE_SELINUX free(yyval.options.role); @@ -1887,7 +1889,7 @@ case 63: } break; case 64: -#line 639 "gram.y" +#line 637 "gram.y" { #ifdef HAVE_SELINUX free(yyval.options.type); @@ -1896,7 +1898,7 @@ case 64: } break; case 65: -#line 645 "gram.y" +#line 643 "gram.y" { #ifdef HAVE_PRIV_SET free(yyval.options.privs); @@ -1905,7 +1907,7 @@ case 65: } break; case 66: -#line 651 "gram.y" +#line 649 "gram.y" { #ifdef HAVE_PRIV_SET free(yyval.options.limitprivs); @@ -1914,97 +1916,97 @@ case 66: } break; case 67: -#line 659 "gram.y" +#line 657 "gram.y" { TAGS_INIT(yyval.tag); } break; case 68: -#line 662 "gram.y" +#line 660 "gram.y" { yyval.tag.nopasswd = true; } break; case 69: -#line 665 "gram.y" +#line 663 "gram.y" { yyval.tag.nopasswd = false; } break; case 70: -#line 668 "gram.y" +#line 666 "gram.y" { yyval.tag.noexec = true; } break; case 71: -#line 671 "gram.y" +#line 669 "gram.y" { yyval.tag.noexec = false; } break; case 72: -#line 674 "gram.y" +#line 672 "gram.y" { yyval.tag.setenv = true; } break; case 73: -#line 677 "gram.y" +#line 675 "gram.y" { yyval.tag.setenv = false; } break; case 74: -#line 680 "gram.y" +#line 678 "gram.y" { yyval.tag.log_input = true; } break; case 75: -#line 683 "gram.y" +#line 681 "gram.y" { yyval.tag.log_input = false; } break; case 76: -#line 686 "gram.y" +#line 684 "gram.y" { yyval.tag.log_output = true; } break; case 77: -#line 689 "gram.y" +#line 687 "gram.y" { yyval.tag.log_output = false; } break; case 78: -#line 692 "gram.y" +#line 690 "gram.y" { yyval.tag.follow = true; } break; case 79: -#line 695 "gram.y" +#line 693 "gram.y" { yyval.tag.follow = false; } break; case 80: -#line 698 "gram.y" +#line 696 "gram.y" { yyval.tag.send_mail = true; } break; case 81: -#line 701 "gram.y" +#line 699 "gram.y" { yyval.tag.send_mail = false; } break; case 82: -#line 706 "gram.y" +#line 704 "gram.y" { yyval.member = new_member(NULL, ALL); if (yyval.member == NULL) { @@ -2014,7 +2016,7 @@ case 82: } break; case 83: -#line 713 "gram.y" +#line 711 "gram.y" { yyval.member = new_member(yyvsp[0].string, ALIAS); if (yyval.member == NULL) { @@ -2024,7 +2026,7 @@ case 83: } break; case 84: -#line 720 "gram.y" +#line 718 "gram.y" { struct sudo_command *c = calloc(1, sizeof(*c)); if (c == NULL) { @@ -2042,7 +2044,7 @@ case 84: } break; case 87: -#line 741 "gram.y" +#line 739 "gram.y" { const char *s; s = alias_add(&parsed_policy, yyvsp[-2].string, HOSTALIAS, @@ -2054,14 +2056,14 @@ case 87: } break; case 89: -#line 753 "gram.y" +#line 751 "gram.y" { HLTQ_CONCAT(yyvsp[-2].member, yyvsp[0].member, entries); yyval.member = yyvsp[-2].member; } break; case 92: -#line 763 "gram.y" +#line 761 "gram.y" { const char *s; s = alias_add(&parsed_policy, yyvsp[-2].string, CMNDALIAS, @@ -2073,14 +2075,14 @@ case 92: } break; case 94: -#line 775 "gram.y" +#line 773 "gram.y" { HLTQ_CONCAT(yyvsp[-2].member, yyvsp[0].member, entries); yyval.member = yyvsp[-2].member; } break; case 97: -#line 785 "gram.y" +#line 783 "gram.y" { const char *s; s = alias_add(&parsed_policy, yyvsp[-2].string, RUNASALIAS, @@ -2092,7 +2094,7 @@ case 97: } break; case 100: -#line 800 "gram.y" +#line 798 "gram.y" { const char *s; s = alias_add(&parsed_policy, yyvsp[-2].string, USERALIAS, @@ -2104,28 +2106,28 @@ case 100: } break; case 102: -#line 812 "gram.y" +#line 810 "gram.y" { HLTQ_CONCAT(yyvsp[-2].member, yyvsp[0].member, entries); yyval.member = yyvsp[-2].member; } break; case 103: -#line 818 "gram.y" +#line 816 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = false; } break; case 104: -#line 822 "gram.y" +#line 820 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = true; } break; case 105: -#line 828 "gram.y" +#line 826 "gram.y" { yyval.member = new_member(yyvsp[0].string, ALIAS); if (yyval.member == NULL) { @@ -2135,7 +2137,7 @@ case 105: } break; case 106: -#line 835 "gram.y" +#line 833 "gram.y" { yyval.member = new_member(NULL, ALL); if (yyval.member == NULL) { @@ -2145,7 +2147,7 @@ case 106: } break; case 107: -#line 842 "gram.y" +#line 840 "gram.y" { yyval.member = new_member(yyvsp[0].string, NETGROUP); if (yyval.member == NULL) { @@ -2155,7 +2157,7 @@ case 107: } break; case 108: -#line 849 "gram.y" +#line 847 "gram.y" { yyval.member = new_member(yyvsp[0].string, USERGROUP); if (yyval.member == NULL) { @@ -2165,7 +2167,7 @@ case 108: } break; case 109: -#line 856 "gram.y" +#line 854 "gram.y" { yyval.member = new_member(yyvsp[0].string, WORD); if (yyval.member == NULL) { @@ -2175,28 +2177,28 @@ case 109: } break; case 111: -#line 866 "gram.y" +#line 864 "gram.y" { HLTQ_CONCAT(yyvsp[-2].member, yyvsp[0].member, entries); yyval.member = yyvsp[-2].member; } break; case 112: -#line 872 "gram.y" +#line 870 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = false; } break; case 113: -#line 876 "gram.y" +#line 874 "gram.y" { yyval.member = yyvsp[0].member; yyval.member->negated = true; } break; case 114: -#line 882 "gram.y" +#line 880 "gram.y" { yyval.member = new_member(yyvsp[0].string, ALIAS); if (yyval.member == NULL) { @@ -2206,7 +2208,7 @@ case 114: } break; case 115: -#line 889 "gram.y" +#line 887 "gram.y" { yyval.member = new_member(NULL, ALL); if (yyval.member == NULL) { @@ -2216,7 +2218,7 @@ case 115: } break; case 116: -#line 896 "gram.y" +#line 894 "gram.y" { yyval.member = new_member(yyvsp[0].string, WORD); if (yyval.member == NULL) { @@ -2225,7 +2227,7 @@ case 116: } } break; -#line 2175 "gram.c" +#line 2173 "gram.c" } yyssp -= yym; yystate = *yyssp; diff --git a/plugins/sudoers/group_plugin.c b/plugins/sudoers/group_plugin.c index 604d17a32..21d651026 100644 --- a/plugins/sudoers/group_plugin.c +++ b/plugins/sudoers/group_plugin.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/hexchar.c b/plugins/sudoers/hexchar.c index 302576855..1813b6656 100644 --- a/plugins/sudoers/hexchar.c +++ b/plugins/sudoers/hexchar.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/interfaces.c b/plugins/sudoers/interfaces.c index 4c31c8553..bd65366f5 100644 --- a/plugins/sudoers/interfaces.c +++ b/plugins/sudoers/interfaces.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index b86fc201f..b746c6154 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/iolog_path.c b/plugins/sudoers/iolog_path.c index 803ba3272..7cdc6ed08 100644 --- a/plugins/sudoers/iolog_path.c +++ b/plugins/sudoers/iolog_path.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/iolog_util.c b/plugins/sudoers/iolog_util.c index ce59c9e30..f22ca62b4 100644 --- a/plugins/sudoers/iolog_util.c +++ b/plugins/sudoers/iolog_util.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/ldap.c b/plugins/sudoers/ldap.c index 5a0df5727..bc2baec12 100644 --- a/plugins/sudoers/ldap.c +++ b/plugins/sudoers/ldap.c @@ -16,8 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/ldap_conf.c b/plugins/sudoers/ldap_conf.c index b05cfdc39..d59807c96 100644 --- a/plugins/sudoers/ldap_conf.c +++ b/plugins/sudoers/ldap_conf.c @@ -16,8 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/ldap_util.c b/plugins/sudoers/ldap_util.c index 78e638063..061b199a1 100644 --- a/plugins/sudoers/ldap_util.c +++ b/plugins/sudoers/ldap_util.c @@ -16,8 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/linux_audit.c b/plugins/sudoers/linux_audit.c index 26608fe36..6ac8be0a5 100644 --- a/plugins/sudoers/linux_audit.c +++ b/plugins/sudoers/linux_audit.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/locale.c b/plugins/sudoers/locale.c index 75200ed9b..c69fd606a 100644 --- a/plugins/sudoers/locale.c +++ b/plugins/sudoers/locale.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index 67c512ec7..767b284a9 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #ifdef __TANDEM # include diff --git a/plugins/sudoers/logwrap.c b/plugins/sudoers/logwrap.c index c6144f4a0..b10e4652a 100644 --- a/plugins/sudoers/logwrap.c +++ b/plugins/sudoers/logwrap.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 3eb2a718c..2611b420a 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/match_addr.c b/plugins/sudoers/match_addr.c index 0758f0309..4310e05dd 100644 --- a/plugins/sudoers/match_addr.c +++ b/plugins/sudoers/match_addr.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/mkdir_parents.c b/plugins/sudoers/mkdir_parents.c index c19c02751..5fa51aca7 100644 --- a/plugins/sudoers/mkdir_parents.c +++ b/plugins/sudoers/mkdir_parents.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index 1ad0a04ff..fb781f579 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/parse_ldif.c b/plugins/sudoers/parse_ldif.c index 45d03da66..9635ea809 100644 --- a/plugins/sudoers/parse_ldif.c +++ b/plugins/sudoers/parse_ldif.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c index 0a1631354..09cf401eb 100644 --- a/plugins/sudoers/policy.c +++ b/plugins/sudoers/policy.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/prompt.c b/plugins/sudoers/prompt.c index 236408966..d79d7d50b 100644 --- a/plugins/sudoers/prompt.c +++ b/plugins/sudoers/prompt.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/pwutil.c b/plugins/sudoers/pwutil.c index 07e9e81cf..ab60986b1 100644 --- a/plugins/sudoers/pwutil.c +++ b/plugins/sudoers/pwutil.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/pwutil_impl.c b/plugins/sudoers/pwutil_impl.c index dd152cb1a..b6251ff87 100644 --- a/plugins/sudoers/pwutil_impl.c +++ b/plugins/sudoers/pwutil_impl.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/rcstr.c b/plugins/sudoers/rcstr.c index ef4ba2a51..8ad2d5d02 100644 --- a/plugins/sudoers/rcstr.c +++ b/plugins/sudoers/rcstr.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/redblack.c b/plugins/sudoers/redblack.c index 3a19927e1..ef7e8f566 100644 --- a/plugins/sudoers/redblack.c +++ b/plugins/sudoers/redblack.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Adapted from the following code written by Emin Martinian: diff --git a/plugins/sudoers/regress/check_symbols/check_symbols.c b/plugins/sudoers/regress/check_symbols/check_symbols.c index cd24cf177..664760978 100644 --- a/plugins/sudoers/regress/check_symbols/check_symbols.c +++ b/plugins/sudoers/regress/check_symbols/check_symbols.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/env_match/check_env_pattern.c b/plugins/sudoers/regress/env_match/check_env_pattern.c index 6f1e9b2ab..96dc8c56d 100644 --- a/plugins/sudoers/regress/env_match/check_env_pattern.c +++ b/plugins/sudoers/regress/env_match/check_env_pattern.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/iolog_path/check_iolog_path.c b/plugins/sudoers/regress/iolog_path/check_iolog_path.c index 44e53446f..69ea767f2 100644 --- a/plugins/sudoers/regress/iolog_path/check_iolog_path.c +++ b/plugins/sudoers/regress/iolog_path/check_iolog_path.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c b/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c index e66674372..456ed3c35 100644 --- a/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c +++ b/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/iolog_util/check_iolog_util.c b/plugins/sudoers/regress/iolog_util/check_iolog_util.c index 915ebce74..d9c932d31 100644 --- a/plugins/sudoers/regress/iolog_util/check_iolog_util.c +++ b/plugins/sudoers/regress/iolog_util/check_iolog_util.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/logging/check_wrap.c b/plugins/sudoers/regress/logging/check_wrap.c index d266c2c04..cc007adb4 100644 --- a/plugins/sudoers/regress/logging/check_wrap.c +++ b/plugins/sudoers/regress/logging/check_wrap.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/parser/check_addr.c b/plugins/sudoers/regress/parser/check_addr.c index 1b813365b..5f67d4dca 100644 --- a/plugins/sudoers/regress/parser/check_addr.c +++ b/plugins/sudoers/regress/parser/check_addr.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/parser/check_base64.c b/plugins/sudoers/regress/parser/check_base64.c index e5d13b63f..a3f28e0af 100644 --- a/plugins/sudoers/regress/parser/check_base64.c +++ b/plugins/sudoers/regress/parser/check_base64.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/parser/check_digest.c b/plugins/sudoers/regress/parser/check_digest.c index ee7187974..0d49a35df 100644 --- a/plugins/sudoers/regress/parser/check_digest.c +++ b/plugins/sudoers/regress/parser/check_digest.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/parser/check_fill.c b/plugins/sudoers/regress/parser/check_fill.c index 782de35c7..e0312b6b1 100644 --- a/plugins/sudoers/regress/parser/check_fill.c +++ b/plugins/sudoers/regress/parser/check_fill.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/parser/check_gentime.c b/plugins/sudoers/regress/parser/check_gentime.c index b4f7def12..957ea4c04 100644 --- a/plugins/sudoers/regress/parser/check_gentime.c +++ b/plugins/sudoers/regress/parser/check_gentime.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/parser/check_hexchar.c b/plugins/sudoers/regress/parser/check_hexchar.c index bd2427fee..d4f965783 100644 --- a/plugins/sudoers/regress/parser/check_hexchar.c +++ b/plugins/sudoers/regress/parser/check_hexchar.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/regress/starttime/check_starttime.c b/plugins/sudoers/regress/starttime/check_starttime.c index 433eddfb3..e858ad370 100644 --- a/plugins/sudoers/regress/starttime/check_starttime.c +++ b/plugins/sudoers/regress/starttime/check_starttime.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/plugins/sudoers/set_perms.c b/plugins/sudoers/set_perms.c index 431604298..6bdc7b977 100644 --- a/plugins/sudoers/set_perms.c +++ b/plugins/sudoers/set_perms.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/solaris_audit.c b/plugins/sudoers/solaris_audit.c index 0596c6b4c..650595ae6 100644 --- a/plugins/sudoers/solaris_audit.c +++ b/plugins/sudoers/solaris_audit.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/sssd.c b/plugins/sudoers/sssd.c index c2c08dce5..085549ff0 100644 --- a/plugins/sudoers/sssd.c +++ b/plugins/sudoers/sssd.c @@ -17,8 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/starttime.c b/plugins/sudoers/starttime.c index d5594033f..62ce1d389 100644 --- a/plugins/sudoers/starttime.c +++ b/plugins/sudoers/starttime.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/strlist.c b/plugins/sudoers/strlist.c index b43860022..1bb763016 100644 --- a/plugins/sudoers/strlist.c +++ b/plugins/sudoers/strlist.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/stubs.c b/plugins/sudoers/stubs.c index f5c01de64..a594b1f48 100644 --- a/plugins/sudoers/stubs.c +++ b/plugins/sudoers/stubs.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Stub versions of functions needed by the parser. diff --git a/plugins/sudoers/sudo_nss.c b/plugins/sudoers/sudo_nss.c index f17db7881..339559a0d 100644 --- a/plugins/sudoers/sudo_nss.c +++ b/plugins/sudoers/sudo_nss.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/sudo_printf.c b/plugins/sudoers/sudo_printf.c index 913ea9763..e82317f19 100644 --- a/plugins/sudoers/sudo_printf.c +++ b/plugins/sudoers/sudo_printf.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index 909cbd450..55822afd8 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #ifdef __TANDEM # include diff --git a/plugins/sudoers/sudoers_debug.c b/plugins/sudoers/sudoers_debug.c index 1056755b9..d09ec1225 100644 --- a/plugins/sudoers/sudoers_debug.c +++ b/plugins/sudoers/sudoers_debug.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index d41cf7078..77317c6f7 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index 4436dfee4..2a97dfc00 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/timeout.c b/plugins/sudoers/timeout.c index 01f5a0562..3b621e355 100644 --- a/plugins/sudoers/timeout.c +++ b/plugins/sudoers/timeout.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/timestamp.c b/plugins/sudoers/timestamp.c index 8d78b4651..5930103ea 100644 --- a/plugins/sudoers/timestamp.c +++ b/plugins/sudoers/timestamp.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/timestr.c b/plugins/sudoers/timestr.c index 68b1ffa1f..d94d09c13 100644 --- a/plugins/sudoers/timestr.c +++ b/plugins/sudoers/timestr.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c index 94615a17b..d0dd5e3d1 100644 --- a/plugins/sudoers/toke.c +++ b/plugins/sudoers/toke.c @@ -1,5 +1,7 @@ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include @@ -2133,7 +2135,7 @@ int (*trace_print)(const char *msg) = sudoers_trace_print; -#line 2136 "toke.c" +#line 2133 "toke.c" #define INITIAL 0 #define GOTDEFS 1 @@ -2349,9 +2351,9 @@ YY_DECL } { -#line 116 "toke.l" +#line 113 "toke.l" -#line 2354 "toke.c" +#line 2351 "toke.c" while ( 1 ) /* loops until end-of-file is reached */ { @@ -2411,7 +2413,7 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 117 "toke.l" +#line 114 "toke.l" { LEXTRACE(", "); LEXRETURN(','); @@ -2419,12 +2421,12 @@ YY_RULE_SETUP YY_BREAK case 2: YY_RULE_SETUP -#line 122 "toke.l" +#line 119 "toke.l" BEGIN STARTDEFS; YY_BREAK case 3: YY_RULE_SETUP -#line 124 "toke.l" +#line 121 "toke.l" { BEGIN INDEFS; LEXTRACE("DEFVAR "); @@ -2436,7 +2438,7 @@ YY_RULE_SETUP case 4: YY_RULE_SETUP -#line 133 "toke.l" +#line 130 "toke.l" { BEGIN STARTDEFS; LEXTRACE(", "); @@ -2445,7 +2447,7 @@ YY_RULE_SETUP YY_BREAK case 5: YY_RULE_SETUP -#line 139 "toke.l" +#line 136 "toke.l" { LEXTRACE("= "); LEXRETURN('='); @@ -2453,7 +2455,7 @@ YY_RULE_SETUP YY_BREAK case 6: YY_RULE_SETUP -#line 144 "toke.l" +#line 141 "toke.l" { LEXTRACE("+= "); LEXRETURN('+'); @@ -2461,7 +2463,7 @@ YY_RULE_SETUP YY_BREAK case 7: YY_RULE_SETUP -#line 149 "toke.l" +#line 146 "toke.l" { LEXTRACE("-= "); LEXRETURN('-'); @@ -2469,7 +2471,7 @@ YY_RULE_SETUP YY_BREAK case 8: YY_RULE_SETUP -#line 154 "toke.l" +#line 151 "toke.l" { LEXTRACE("BEGINSTR "); sudoerslval.string = NULL; @@ -2479,7 +2481,7 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 161 "toke.l" +#line 158 "toke.l" { LEXTRACE("WORD(2) "); if (!fill(sudoerstext, sudoersleng)) @@ -2492,7 +2494,7 @@ YY_RULE_SETUP case 10: /* rule 10 can match eol */ YY_RULE_SETUP -#line 170 "toke.l" +#line 167 "toke.l" { /* Line continuation char followed by newline. */ sudolineno++; @@ -2501,7 +2503,7 @@ YY_RULE_SETUP YY_BREAK case 11: YY_RULE_SETUP -#line 176 "toke.l" +#line 173 "toke.l" { LEXTRACE("ENDSTR "); BEGIN prev_state; @@ -2536,7 +2538,7 @@ YY_RULE_SETUP YY_BREAK case 12: YY_RULE_SETUP -#line 208 "toke.l" +#line 205 "toke.l" { LEXTRACE("BACKSLASH "); if (!append(sudoerstext, sudoersleng)) @@ -2545,7 +2547,7 @@ YY_RULE_SETUP YY_BREAK case 13: YY_RULE_SETUP -#line 214 "toke.l" +#line 211 "toke.l" { LEXTRACE("STRBODY "); if (!append(sudoerstext, sudoersleng)) @@ -2556,7 +2558,7 @@ YY_RULE_SETUP case 14: YY_RULE_SETUP -#line 222 "toke.l" +#line 219 "toke.l" { /* quoted fnmatch glob char, pass verbatim */ LEXTRACE("QUOTEDCHAR "); @@ -2567,7 +2569,7 @@ YY_RULE_SETUP YY_BREAK case 15: YY_RULE_SETUP -#line 230 "toke.l" +#line 227 "toke.l" { /* quoted sudoers special char, strip backslash */ LEXTRACE("QUOTEDCHAR "); @@ -2579,7 +2581,7 @@ YY_RULE_SETUP case 16: /* rule 16 can match eol */ YY_RULE_SETUP -#line 238 "toke.l" +#line 235 "toke.l" { BEGIN INITIAL; yyless(0); @@ -2588,7 +2590,7 @@ YY_RULE_SETUP YY_BREAK case 17: YY_RULE_SETUP -#line 244 "toke.l" +#line 241 "toke.l" { LEXTRACE("ARG "); if (!fill_args(sudoerstext, sudoersleng, sawspace)) @@ -2599,7 +2601,7 @@ YY_RULE_SETUP case 18: YY_RULE_SETUP -#line 252 "toke.l" +#line 249 "toke.l" { /* Only return DIGEST if the length is correct. */ yy_size_t digest_len = @@ -2617,7 +2619,7 @@ YY_RULE_SETUP YY_BREAK case 19: YY_RULE_SETUP -#line 267 "toke.l" +#line 264 "toke.l" { /* Only return DIGEST if the length is correct. */ yy_size_t len, digest_len = @@ -2643,7 +2645,7 @@ YY_RULE_SETUP case 20: /* rule 20 can match eol */ YY_RULE_SETUP -#line 289 "toke.l" +#line 286 "toke.l" { char *path; @@ -2665,7 +2667,7 @@ YY_RULE_SETUP case 21: /* rule 21 can match eol */ YY_RULE_SETUP -#line 307 "toke.l" +#line 304 "toke.l" { char *path; @@ -2689,7 +2691,7 @@ YY_RULE_SETUP YY_BREAK case 22: YY_RULE_SETUP -#line 328 "toke.l" +#line 325 "toke.l" { char deftype; int n; @@ -2732,7 +2734,7 @@ YY_RULE_SETUP YY_BREAK case 23: YY_RULE_SETUP -#line 368 "toke.l" +#line 365 "toke.l" { int n; @@ -2761,7 +2763,7 @@ YY_RULE_SETUP YY_BREAK case 24: YY_RULE_SETUP -#line 394 "toke.l" +#line 391 "toke.l" { /* cmnd does not require passwd for this user */ LEXTRACE("NOPASSWD "); @@ -2770,7 +2772,7 @@ YY_RULE_SETUP YY_BREAK case 25: YY_RULE_SETUP -#line 400 "toke.l" +#line 397 "toke.l" { /* cmnd requires passwd for this user */ LEXTRACE("PASSWD "); @@ -2779,7 +2781,7 @@ YY_RULE_SETUP YY_BREAK case 26: YY_RULE_SETUP -#line 406 "toke.l" +#line 403 "toke.l" { LEXTRACE("NOEXEC "); LEXRETURN(NOEXEC); @@ -2787,7 +2789,7 @@ YY_RULE_SETUP YY_BREAK case 27: YY_RULE_SETUP -#line 411 "toke.l" +#line 408 "toke.l" { LEXTRACE("EXEC "); LEXRETURN(EXEC); @@ -2795,7 +2797,7 @@ YY_RULE_SETUP YY_BREAK case 28: YY_RULE_SETUP -#line 416 "toke.l" +#line 413 "toke.l" { LEXTRACE("SETENV "); LEXRETURN(SETENV); @@ -2803,7 +2805,7 @@ YY_RULE_SETUP YY_BREAK case 29: YY_RULE_SETUP -#line 421 "toke.l" +#line 418 "toke.l" { LEXTRACE("NOSETENV "); LEXRETURN(NOSETENV); @@ -2811,7 +2813,7 @@ YY_RULE_SETUP YY_BREAK case 30: YY_RULE_SETUP -#line 426 "toke.l" +#line 423 "toke.l" { LEXTRACE("LOG_OUTPUT "); LEXRETURN(LOG_OUTPUT); @@ -2819,7 +2821,7 @@ YY_RULE_SETUP YY_BREAK case 31: YY_RULE_SETUP -#line 431 "toke.l" +#line 428 "toke.l" { LEXTRACE("NOLOG_OUTPUT "); LEXRETURN(NOLOG_OUTPUT); @@ -2827,7 +2829,7 @@ YY_RULE_SETUP YY_BREAK case 32: YY_RULE_SETUP -#line 436 "toke.l" +#line 433 "toke.l" { LEXTRACE("LOG_INPUT "); LEXRETURN(LOG_INPUT); @@ -2835,7 +2837,7 @@ YY_RULE_SETUP YY_BREAK case 33: YY_RULE_SETUP -#line 441 "toke.l" +#line 438 "toke.l" { LEXTRACE("NOLOG_INPUT "); LEXRETURN(NOLOG_INPUT); @@ -2843,7 +2845,7 @@ YY_RULE_SETUP YY_BREAK case 34: YY_RULE_SETUP -#line 446 "toke.l" +#line 443 "toke.l" { LEXTRACE("MAIL "); LEXRETURN(MAIL); @@ -2851,7 +2853,7 @@ YY_RULE_SETUP YY_BREAK case 35: YY_RULE_SETUP -#line 451 "toke.l" +#line 448 "toke.l" { LEXTRACE("NOMAIL "); LEXRETURN(NOMAIL); @@ -2859,7 +2861,7 @@ YY_RULE_SETUP YY_BREAK case 36: YY_RULE_SETUP -#line 456 "toke.l" +#line 453 "toke.l" { LEXTRACE("FOLLOW "); LEXRETURN(FOLLOW); @@ -2867,7 +2869,7 @@ YY_RULE_SETUP YY_BREAK case 37: YY_RULE_SETUP -#line 461 "toke.l" +#line 458 "toke.l" { LEXTRACE("NOFOLLOW "); LEXRETURN(NOFOLLOW); @@ -2875,7 +2877,7 @@ YY_RULE_SETUP YY_BREAK case 38: YY_RULE_SETUP -#line 466 "toke.l" +#line 463 "toke.l" { /* empty group or netgroup */ LEXTRACE("ERROR "); @@ -2884,7 +2886,7 @@ YY_RULE_SETUP YY_BREAK case 39: YY_RULE_SETUP -#line 472 "toke.l" +#line 469 "toke.l" { /* netgroup */ if (!fill(sudoerstext, sudoersleng)) @@ -2895,7 +2897,7 @@ YY_RULE_SETUP YY_BREAK case 40: YY_RULE_SETUP -#line 480 "toke.l" +#line 477 "toke.l" { /* group */ if (!fill(sudoerstext, sudoersleng)) @@ -2906,7 +2908,7 @@ YY_RULE_SETUP YY_BREAK case 41: YY_RULE_SETUP -#line 488 "toke.l" +#line 485 "toke.l" { if (!fill(sudoerstext, sudoersleng)) yyterminate(); @@ -2916,7 +2918,7 @@ YY_RULE_SETUP YY_BREAK case 42: YY_RULE_SETUP -#line 495 "toke.l" +#line 492 "toke.l" { if (!fill(sudoerstext, sudoersleng)) yyterminate(); @@ -2926,7 +2928,7 @@ YY_RULE_SETUP YY_BREAK case 43: YY_RULE_SETUP -#line 502 "toke.l" +#line 499 "toke.l" { if (!ipv6_valid(sudoerstext)) { LEXTRACE("ERROR "); @@ -2940,7 +2942,7 @@ YY_RULE_SETUP YY_BREAK case 44: YY_RULE_SETUP -#line 513 "toke.l" +#line 510 "toke.l" { if (!ipv6_valid(sudoerstext)) { LEXTRACE("ERROR "); @@ -2954,7 +2956,7 @@ YY_RULE_SETUP YY_BREAK case 45: YY_RULE_SETUP -#line 524 "toke.l" +#line 521 "toke.l" { LEXTRACE("ALL "); LEXRETURN(ALL); @@ -2963,7 +2965,7 @@ YY_RULE_SETUP YY_BREAK case 46: YY_RULE_SETUP -#line 530 "toke.l" +#line 527 "toke.l" { LEXTRACE("CMND_TIMEOUT "); LEXRETURN(CMND_TIMEOUT); @@ -2971,7 +2973,7 @@ YY_RULE_SETUP YY_BREAK case 47: YY_RULE_SETUP -#line 535 "toke.l" +#line 532 "toke.l" { LEXTRACE("NOTBEFORE "); LEXRETURN(NOTBEFORE); @@ -2979,7 +2981,7 @@ YY_RULE_SETUP YY_BREAK case 48: YY_RULE_SETUP -#line 540 "toke.l" +#line 537 "toke.l" { LEXTRACE("NOTAFTER "); LEXRETURN(NOTAFTER); @@ -2987,7 +2989,7 @@ YY_RULE_SETUP YY_BREAK case 49: YY_RULE_SETUP -#line 545 "toke.l" +#line 542 "toke.l" { #ifdef HAVE_SELINUX LEXTRACE("ROLE "); @@ -2999,7 +3001,7 @@ YY_RULE_SETUP YY_BREAK case 50: YY_RULE_SETUP -#line 554 "toke.l" +#line 551 "toke.l" { #ifdef HAVE_SELINUX LEXTRACE("TYPE "); @@ -3011,7 +3013,7 @@ YY_RULE_SETUP YY_BREAK case 51: YY_RULE_SETUP -#line 562 "toke.l" +#line 559 "toke.l" { #ifdef HAVE_PRIV_SET LEXTRACE("PRIVS "); @@ -3023,7 +3025,7 @@ YY_RULE_SETUP YY_BREAK case 52: YY_RULE_SETUP -#line 571 "toke.l" +#line 568 "toke.l" { #ifdef HAVE_PRIV_SET LEXTRACE("LIMITPRIVS "); @@ -3035,7 +3037,7 @@ YY_RULE_SETUP YY_BREAK case 53: YY_RULE_SETUP -#line 580 "toke.l" +#line 577 "toke.l" { got_alias: if (!fill(sudoerstext, sudoersleng)) @@ -3046,7 +3048,7 @@ YY_RULE_SETUP YY_BREAK case 54: YY_RULE_SETUP -#line 588 "toke.l" +#line 585 "toke.l" { /* XXX - no way to specify digest for command */ /* no command args allowed for Defaults!/path */ @@ -3058,7 +3060,7 @@ YY_RULE_SETUP YY_BREAK case 55: YY_RULE_SETUP -#line 597 "toke.l" +#line 594 "toke.l" { digest_type = SUDO_DIGEST_SHA224; BEGIN WANTDIGEST; @@ -3068,7 +3070,7 @@ YY_RULE_SETUP YY_BREAK case 56: YY_RULE_SETUP -#line 604 "toke.l" +#line 601 "toke.l" { digest_type = SUDO_DIGEST_SHA256; BEGIN WANTDIGEST; @@ -3078,7 +3080,7 @@ YY_RULE_SETUP YY_BREAK case 57: YY_RULE_SETUP -#line 611 "toke.l" +#line 608 "toke.l" { digest_type = SUDO_DIGEST_SHA384; BEGIN WANTDIGEST; @@ -3088,7 +3090,7 @@ YY_RULE_SETUP YY_BREAK case 58: YY_RULE_SETUP -#line 618 "toke.l" +#line 615 "toke.l" { digest_type = SUDO_DIGEST_SHA512; BEGIN WANTDIGEST; @@ -3098,7 +3100,7 @@ YY_RULE_SETUP YY_BREAK case 59: YY_RULE_SETUP -#line 625 "toke.l" +#line 622 "toke.l" { BEGIN GOTCMND; LEXTRACE("COMMAND "); @@ -3108,7 +3110,7 @@ YY_RULE_SETUP YY_BREAK case 60: YY_RULE_SETUP -#line 632 "toke.l" +#line 629 "toke.l" { /* directories can't have args... */ if (sudoerstext[sudoersleng - 1] == '/') { @@ -3126,7 +3128,7 @@ YY_RULE_SETUP YY_BREAK case 61: YY_RULE_SETUP -#line 647 "toke.l" +#line 644 "toke.l" { LEXTRACE("BEGINSTR "); sudoerslval.string = NULL; @@ -3136,7 +3138,7 @@ YY_RULE_SETUP YY_BREAK case 62: YY_RULE_SETUP -#line 654 "toke.l" +#line 651 "toke.l" { /* a word */ if (!fill(sudoerstext, sudoersleng)) @@ -3147,7 +3149,7 @@ YY_RULE_SETUP YY_BREAK case 63: YY_RULE_SETUP -#line 662 "toke.l" +#line 659 "toke.l" { LEXTRACE("( "); LEXRETURN('('); @@ -3155,7 +3157,7 @@ YY_RULE_SETUP YY_BREAK case 64: YY_RULE_SETUP -#line 667 "toke.l" +#line 664 "toke.l" { LEXTRACE(") "); LEXRETURN(')'); @@ -3163,7 +3165,7 @@ YY_RULE_SETUP YY_BREAK case 65: YY_RULE_SETUP -#line 672 "toke.l" +#line 669 "toke.l" { LEXTRACE(", "); LEXRETURN(','); @@ -3171,7 +3173,7 @@ YY_RULE_SETUP YY_BREAK case 66: YY_RULE_SETUP -#line 677 "toke.l" +#line 674 "toke.l" { LEXTRACE("= "); LEXRETURN('='); @@ -3179,7 +3181,7 @@ YY_RULE_SETUP YY_BREAK case 67: YY_RULE_SETUP -#line 682 "toke.l" +#line 679 "toke.l" { LEXTRACE(": "); LEXRETURN(':'); @@ -3187,7 +3189,7 @@ YY_RULE_SETUP YY_BREAK case 68: YY_RULE_SETUP -#line 687 "toke.l" +#line 684 "toke.l" { if (sudoersleng & 1) { LEXTRACE("!"); @@ -3198,7 +3200,7 @@ YY_RULE_SETUP case 69: /* rule 69 can match eol */ YY_RULE_SETUP -#line 694 "toke.l" +#line 691 "toke.l" { if (YY_START == INSTR) { LEXTRACE("ERROR "); @@ -3213,7 +3215,7 @@ YY_RULE_SETUP YY_BREAK case 70: YY_RULE_SETUP -#line 706 "toke.l" +#line 703 "toke.l" { /* throw away space/tabs */ sawspace = true; /* but remember for fill_args */ } @@ -3221,7 +3223,7 @@ YY_RULE_SETUP case 71: /* rule 71 can match eol */ YY_RULE_SETUP -#line 710 "toke.l" +#line 707 "toke.l" { sawspace = true; /* remember for fill_args */ sudolineno++; @@ -3231,7 +3233,7 @@ YY_RULE_SETUP case 72: /* rule 72 can match eol */ YY_RULE_SETUP -#line 716 "toke.l" +#line 713 "toke.l" { if (sudoerstext[sudoersleng - 1] == '\n') { /* comment ending in a newline */ @@ -3248,7 +3250,7 @@ YY_RULE_SETUP YY_BREAK case 73: YY_RULE_SETUP -#line 730 "toke.l" +#line 727 "toke.l" { LEXTRACE("ERROR "); LEXRETURN(ERROR); @@ -3261,7 +3263,7 @@ case YY_STATE_EOF(STARTDEFS): case YY_STATE_EOF(INDEFS): case YY_STATE_EOF(INSTR): case YY_STATE_EOF(WANTDIGEST): -#line 735 "toke.l" +#line 732 "toke.l" { if (YY_START != INITIAL) { BEGIN INITIAL; @@ -3274,10 +3276,10 @@ case YY_STATE_EOF(WANTDIGEST): YY_BREAK case 74: YY_RULE_SETUP -#line 745 "toke.l" +#line 742 "toke.l" ECHO; YY_BREAK -#line 3280 "toke.c" +#line 3277 "toke.c" case YY_END_OF_BUFFER: { @@ -4238,7 +4240,7 @@ void sudoersfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 745 "toke.l" +#line 742 "toke.l" struct path_list { diff --git a/plugins/sudoers/toke_util.c b/plugins/sudoers/toke_util.c index 3fd819a60..0c9137680 100644 --- a/plugins/sudoers/toke_util.c +++ b/plugins/sudoers/toke_util.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/tsdump.c b/plugins/sudoers/tsdump.c index 83fd6a16a..91a26cec7 100644 --- a/plugins/sudoers/tsdump.c +++ b/plugins/sudoers/tsdump.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/plugins/sudoers/tsgetgrpw.c b/plugins/sudoers/tsgetgrpw.c index 3aef27980..e59a3edd3 100644 --- a/plugins/sudoers/tsgetgrpw.c +++ b/plugins/sudoers/tsgetgrpw.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Trivial replacements for the libc get{gr,pw}{uid,nam}() routines diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index 38d70573e..5257a9b7d 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Lock the sudoers file for safe editing (ala vipw) and check for parse errors. diff --git a/plugins/system_group/system_group.c b/plugins/system_group/system_group.c index 79f160bf9..b34dea496 100644 --- a/plugins/system_group/system_group.c +++ b/plugins/system_group/system_group.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/conversation.c b/src/conversation.c index 6e2a6fbee..fccb3d6f4 100644 --- a/src/conversation.c +++ b/src/conversation.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/env_hooks.c b/src/env_hooks.c index fdf39bd47..8a0b26c5c 100644 --- a/src/env_hooks.c +++ b/src/env_hooks.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/exec.c b/src/exec.c index c071c8f94..6799fc085 100644 --- a/src/exec.c +++ b/src/exec.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/exec_common.c b/src/exec_common.c index 1b0e984d2..53abdbf49 100644 --- a/src/exec_common.c +++ b/src/exec_common.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/exec_monitor.c b/src/exec_monitor.c index 8592fc627..4a81b5ddd 100644 --- a/src/exec_monitor.c +++ b/src/exec_monitor.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/exec_nopty.c b/src/exec_nopty.c index 51535cd7f..0df79f003 100644 --- a/src/exec_nopty.c +++ b/src/exec_nopty.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/exec_pty.c b/src/exec_pty.c index 78a0d14f0..cbcccca34 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/get_pty.c b/src/get_pty.c index 37082c1b2..3e1a26ac1 100644 --- a/src/get_pty.c +++ b/src/get_pty.c @@ -15,8 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/hooks.c b/src/hooks.c index 2dd3664de..12169805f 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/load_plugins.c b/src/load_plugins.c index 7709a89be..8cac77b8a 100644 --- a/src/load_plugins.c +++ b/src/load_plugins.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/net_ifs.c b/src/net_ifs.c index 2bc72fe25..f95cf4d61 100644 --- a/src/net_ifs.c +++ b/src/net_ifs.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ /* * Suppress a warning w/ gcc on Digital UN*X. diff --git a/src/openbsd.c b/src/openbsd.c index 6fb174da5..fd0e2f392 100644 --- a/src/openbsd.c +++ b/src/openbsd.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/parse_args.c b/src/parse_args.c index 1f1a3ef1d..d9bbe0650 100644 --- a/src/parse_args.c +++ b/src/parse_args.c @@ -18,8 +18,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/preload.c b/src/preload.c index 73e2bebf2..e9f83ee5e 100644 --- a/src/preload.c +++ b/src/preload.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/preserve_fds.c b/src/preserve_fds.c index 2d6fd841d..1de01ad88 100644 --- a/src/preserve_fds.c +++ b/src/preserve_fds.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/regress/noexec/check_noexec.c b/src/regress/noexec/check_noexec.c index 892aa1a8a..e83f42095 100644 --- a/src/regress/noexec/check_noexec.c +++ b/src/regress/noexec/check_noexec.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/src/regress/ttyname/check_ttyname.c b/src/regress/ttyname/check_ttyname.c index defb7dbec..1609cd096 100644 --- a/src/regress/ttyname/check_ttyname.c +++ b/src/regress/ttyname/check_ttyname.c @@ -14,9 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - #include #include diff --git a/src/selinux.c b/src/selinux.c index a9953e2be..ed36d8964 100644 --- a/src/selinux.c +++ b/src/selinux.c @@ -24,8 +24,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/sesh.c b/src/sesh.c index ab229a857..873748e4c 100644 --- a/src/sesh.c +++ b/src/sesh.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/signal.c b/src/signal.c index e7212d207..5c6022555 100644 --- a/src/signal.c +++ b/src/signal.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/solaris.c b/src/solaris.c index 5fc07117a..8e2fceee8 100644 --- a/src/solaris.c +++ b/src/solaris.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/sudo.c b/src/sudo.c index e247e66e9..c81f94617 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #ifdef __TANDEM # include diff --git a/src/sudo_edit.c b/src/sudo_edit.c index b967add25..44b4fb3b0 100644 --- a/src/sudo_edit.c +++ b/src/sudo_edit.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/sudo_noexec.c b/src/sudo_noexec.c index c4a383082..c103d5fe4 100644 --- a/src/sudo_noexec.c +++ b/src/sudo_noexec.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/tcsetpgrp_nobg.c b/src/tcsetpgrp_nobg.c index da9a4820f..03e95c8e4 100644 --- a/src/tcsetpgrp_nobg.c +++ b/src/tcsetpgrp_nobg.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/tgetpass.c b/src/tgetpass.c index d4b28adef..76b0c8bae 100644 --- a/src/tgetpass.c +++ b/src/tgetpass.c @@ -19,8 +19,10 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #ifdef __TANDEM # include diff --git a/src/ttyname.c b/src/ttyname.c index 7a8f75a5b..580bafdd3 100644 --- a/src/ttyname.c +++ b/src/ttyname.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include diff --git a/src/utmp.c b/src/utmp.c index d33730a2c..ecaabe9b6 100644 --- a/src/utmp.c +++ b/src/utmp.c @@ -14,8 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -// This is an open source non-commercial project. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +/* + * This is an open source non-commercial project. Dear PVS-Studio, please check it. + * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + */ #include