]> granicus.if.org Git - sudo/log
sudo
5 years agoBetter comment about EOVERFLOW and pstat_getproc().
Todd C. Miller [Thu, 7 Mar 2019 03:15:11 +0000 (20:15 -0700)]
Better comment about EOVERFLOW and pstat_getproc().
Also remove some useless casts.

5 years agoIgnore EOVERFLOW from pstat_getproc(), it is not a fatal error.
Todd C. Miller [Thu, 7 Mar 2019 03:13:40 +0000 (20:13 -0700)]
Ignore EOVERFLOW from pstat_getproc(), it is not a fatal error.
It just means that one of the fields in pstat lacks the precision to
store a value.  That's not an issue for pst_highestfd.

5 years agoupdate copyright year
Todd C. Miller [Wed, 6 Mar 2019 17:46:23 +0000 (10:46 -0700)]
update copyright year

5 years agoFix error message when a fully-qualified plugin path does not exist.
Todd C. Miller [Tue, 5 Mar 2019 17:23:07 +0000 (10:23 -0700)]
Fix error message when a fully-qualified plugin path does not exist.

5 years agoFix unescaped '\' and remove an extra '[' in the definition of digest.
Todd C. Miller [Mon, 4 Mar 2019 15:52:28 +0000 (08:52 -0700)]
Fix unescaped '\' and remove an extra '[' in the definition of digest.

5 years agoIgnore carriage return before a linefeed.
Todd C. Miller [Sun, 3 Mar 2019 21:41:59 +0000 (14:41 -0700)]
Ignore carriage return before a linefeed.
This allows sudo to parse files with DOS-style line endings.

5 years agoFor sssd, the nsswitch.conf setting should be "sss" not "sssd".
Todd C. Miller [Tue, 26 Feb 2019 20:15:40 +0000 (13:15 -0700)]
For sssd, the nsswitch.conf setting should be "sss" not "sssd".
From Johnathan Smith.

5 years agoAdd simple API for to allow reading environment data from different sources.
Todd C. Miller [Thu, 21 Feb 2019 00:05:02 +0000 (17:05 -0700)]
Add simple API for to allow reading environment data from different sources.
Currently, this is used to read a file like /etc/environment.

5 years agoFix pasto; the unrestricted env file was read when we want the restricted one.
Todd C. Miller [Tue, 19 Feb 2019 18:03:02 +0000 (11:03 -0700)]
Fix pasto; the unrestricted env file was read when we want the restricted one.

5 years agoBe sure to include sudo_queue.h where needed instead of relying on other headers.
Todd C. Miller [Tue, 19 Feb 2019 15:31:08 +0000 (08:31 -0700)]
Be sure to include sudo_queue.h where needed instead of relying on other headers.

5 years agoOnly export sudo_arc4random_uniform() if arc4random_uniform() is missing.
Todd C. Miller [Mon, 18 Feb 2019 23:03:55 +0000 (16:03 -0700)]
Only export sudo_arc4random_uniform() if arc4random_uniform() is missing.

5 years agoQuiet a warning on gcc 8
Todd C. Miller [Mon, 18 Feb 2019 22:56:12 +0000 (15:56 -0700)]
Quiet a warning on gcc 8

5 years agoAIX 7.1 defines O_CLOEXEC but it can't be used outside the kernel.
Todd C. Miller [Mon, 18 Feb 2019 22:45:31 +0000 (15:45 -0700)]
AIX 7.1 defines O_CLOEXEC but it can't be used outside the kernel.
Redefine O_CLOEXEC if it doesn't fit in an int and pipe2() is missing.

5 years agoSplit command match code out into match_command.c.
Todd C. Miller [Mon, 18 Feb 2019 18:35:52 +0000 (11:35 -0700)]
Split command match code out into match_command.c.
Also remove unused SUDOERS_NAME_MATCH code.

5 years agoSplit out digest matching into its own file.
Todd C. Miller [Sun, 17 Feb 2019 15:21:13 +0000 (08:21 -0700)]
Split out digest matching into its own file.

5 years agoSplit out digest matching into its own file.
Todd C. Miller [Sun, 17 Feb 2019 13:47:37 +0000 (06:47 -0700)]
Split out digest matching into its own file.

5 years agoRename FOLLOW and NOFOLLOW tokens FOLLOWLNK and NOFOLLOWLNK.
Todd C. Miller [Tue, 12 Feb 2019 19:02:02 +0000 (12:02 -0700)]
Rename FOLLOW and NOFOLLOW tokens FOLLOWLNK and NOFOLLOWLNK.
Fixes a namespace collision on Solaris when bison is used.

5 years agoAdd stub definition of digest_matches() for SUDOERS_NAME_MATCH
Todd C. Miller [Wed, 6 Feb 2019 20:12:33 +0000 (13:12 -0700)]
Add stub definition of digest_matches() for SUDOERS_NAME_MATCH

5 years agoNo longer need to include sudo_lbuf.h
Todd C. Miller [Wed, 6 Feb 2019 17:25:52 +0000 (10:25 -0700)]
No longer need to include sudo_lbuf.h

5 years agoOn RedHat/CentOS get the OS major version from /etc/redhat-release.
Todd C. Miller [Wed, 6 Feb 2019 13:30:00 +0000 (06:30 -0700)]
On RedHat/CentOS get the OS major version from /etc/redhat-release.
We cannot determine this from the output of "pp --probe" since it
doesn't contain a period to separate the major and minor numbers.

5 years agoUse SET macro instead of bitwise OR.
Todd C. Miller [Tue, 5 Feb 2019 23:47:08 +0000 (16:47 -0700)]
Use SET macro instead of bitwise OR.

5 years agoIn sudo_make_grlist_item() the calculation of total did not include
Todd C. Miller [Tue, 5 Feb 2019 23:46:30 +0000 (16:46 -0700)]
In sudo_make_grlist_item() the calculation of total did not include
space for pointers to the group names.

5 years agoUse correct debug_decl() names.
Todd C. Miller [Tue, 5 Feb 2019 21:29:39 +0000 (14:29 -0700)]
Use correct debug_decl() names.

5 years agoAdd fallback values for sudoers uid, gid and mode if not set in Makefile.
Todd C. Miller [Tue, 5 Feb 2019 17:02:17 +0000 (10:02 -0700)]
Add fallback values for sudoers uid, gid and mode if not set in Makefile.

5 years agoinclude stddef.h to make sure we get NULL
Todd C. Miller [Mon, 4 Feb 2019 21:07:20 +0000 (14:07 -0700)]
include stddef.h to make sure we get NULL

5 years agoFix memory leak when there are no network interfaces or an error occurs.
Todd C. Miller [Sat, 2 Feb 2019 20:55:30 +0000 (13:55 -0700)]
Fix memory leak when there are no network interfaces or an error occurs.

5 years agoUse $ac_cv_search_FUNCTION instead of $ac_lib and $ac_res.
Todd C. Miller [Fri, 25 Jan 2019 17:39:57 +0000 (10:39 -0700)]
Use $ac_cv_search_FUNCTION instead of $ac_lib and $ac_res.
Fixes a problem where libcrypt is not used with autoconf caching.
Adapted from a diff from Adam Labbe.

5 years agoUpdated translations from translationproject.org
Todd C. Miller [Thu, 24 Jan 2019 21:59:13 +0000 (14:59 -0700)]
Updated translations from translationproject.org

5 years agoFix listpw=never and verifypw=never. Bug #869
Todd C. Miller [Tue, 22 Jan 2019 13:41:16 +0000 (06:41 -0700)]
Fix listpw=never and verifypw=never.  Bug #869

5 years agoMinor snprintf() usage tweaks:
Todd C. Miller [Sun, 20 Jan 2019 14:49:48 +0000 (07:49 -0700)]
Minor snprintf() usage tweaks:
1) don't assume snprintf() returns -1 on error, check for <0
2) when comparing return value of sizeof(foo), cast the sizeof, not the len
3) cast return value to void in cases where snprintf cannot fail

5 years agoThe AIX nofiles hard limit fix and bug #867 will make 1.8.27.
Todd C. Miller [Mon, 7 Jan 2019 18:01:21 +0000 (11:01 -0700)]
The AIX nofiles hard limit fix and bug #867 will make 1.8.27.

5 years agoUse PAM_SILENT to prevent pam_lastlog from printing last login
Todd C. Miller [Mon, 7 Jan 2019 16:50:40 +0000 (09:50 -0700)]
Use PAM_SILENT to prevent pam_lastlog from printing last login
information on RedHat except when explicitly running a shell.
Adapted from a patch from Nir Soffer.  Bug #867

5 years agoFix the default nofiles and stack hard limits.
Todd C. Miller [Mon, 7 Jan 2019 16:38:03 +0000 (09:38 -0700)]
Fix the default nofiles and stack hard limits.
The table of default hard limits in /etc/security/limits was out
of date with respect to the current documentation.  The default
hard limit for nofiles should be unlimited, not 8196.  The default
hard limit for stack should be 4194304 blocks (which fits in an
unsigned long on 32-bit platforms).

5 years agoregen
Todd C. Miller [Thu, 3 Jan 2019 20:26:57 +0000 (13:26 -0700)]
regen

5 years agoFinal updates for sudo 1.8.27.
Todd C. Miller [Thu, 3 Jan 2019 20:16:57 +0000 (13:16 -0700)]
Final updates for sudo 1.8.27.

5 years agoUpdate copyright year
Todd C. Miller [Thu, 3 Jan 2019 18:09:00 +0000 (11:09 -0700)]
Update copyright year

5 years agoUpdate for 2019
Todd C. Miller [Thu, 3 Jan 2019 18:05:46 +0000 (11:05 -0700)]
Update for 2019

5 years agoFix setting of utmp entry when running command in a pty.
Todd C. Miller [Wed, 2 Jan 2019 14:39:33 +0000 (07:39 -0700)]
Fix setting of utmp entry when running command in a pty.
Regression introduced in sudo 1.8.22.

6 years agoUse debug_return_int not debug_return_bool in resolve_host
Todd C. Miller [Tue, 25 Dec 2018 03:31:26 +0000 (20:31 -0700)]
Use debug_return_int not debug_return_bool in resolve_host

6 years agosudo 1.8.27
Todd C. Miller [Mon, 24 Dec 2018 17:09:35 +0000 (10:09 -0700)]
sudo 1.8.27

6 years agoAllow the sudoers file to be specified without the -f option.
Todd C. Miller [Mon, 24 Dec 2018 15:26:18 +0000 (08:26 -0700)]
Allow the sudoers file to be specified without the -f option.
Bug #864

6 years agoThe iolog_dir section is below the maxseq section, not above.
Todd C. Miller [Thu, 20 Dec 2018 13:57:05 +0000 (06:57 -0700)]
The iolog_dir section is below the maxseq section, not above.

6 years agoUpdated translations from translationproject.org
Todd C. Miller [Wed, 12 Dec 2018 17:47:01 +0000 (10:47 -0700)]
Updated translations from translationproject.org

6 years agoAdd -n and -R options to help; reported by Radovan Sroka
Todd C. Miller [Tue, 11 Dec 2018 16:17:15 +0000 (09:17 -0700)]
Add -n and -R options to help; reported by Radovan Sroka

6 years agoAdd missing description of padding option and missing argument to -c.
Todd C. Miller [Tue, 11 Dec 2018 16:12:06 +0000 (09:12 -0700)]
Add missing description of padding option and missing argument to -c.

6 years agoThe -c option was missing from the help info; from Radovan Sroka
Todd C. Miller [Tue, 11 Dec 2018 16:05:04 +0000 (09:05 -0700)]
The -c option was missing from the help info; from Radovan Sroka

6 years agoFix some typos; reported by Radovan Sroka
Todd C. Miller [Tue, 11 Dec 2018 16:02:30 +0000 (09:02 -0700)]
Fix some typos; reported by Radovan Sroka

6 years agoIn sudo_pam_approval(), for the exempt case, only overwrite pam
Todd C. Miller [Sat, 8 Dec 2018 15:10:04 +0000 (08:10 -0700)]
In sudo_pam_approval(), for the exempt case, only overwrite pam
status when the passwd is expired or needs to be updated.

6 years agoThe fix for bug #843 was incomplete and caused pam_end() to be called early.
Todd C. Miller [Fri, 7 Dec 2018 16:51:34 +0000 (09:51 -0700)]
The fix for bug #843 was incomplete and caused pam_end() to be called early.
sudo_pam_approval() must not set the global pam status to an error
value if it returns AUTH_SUCCESS.  Otherwise, sudo_pam_cleanup()
will call pam_end() before sudo_pam_begin_session().  This resulted
in a NULL PAM handle being used in sudo_pam_begin_session().

6 years agoDon't run the command in a pty if no I/O plugins are logging anything.
Todd C. Miller [Wed, 5 Dec 2018 17:43:14 +0000 (10:43 -0700)]
Don't run the command in a pty if no I/O plugins are logging anything.
That way an I/O plugin that doesn't actually log anything won't cause
the command to be run in a pty.

6 years agoUpdate ignore patterns to match doc changes.
Todd C. Miller [Thu, 29 Nov 2018 15:49:58 +0000 (08:49 -0700)]
Update ignore patterns to match doc changes.

6 years agofix mode fixmdoc.sed
Todd C. Miller [Thu, 29 Nov 2018 15:47:42 +0000 (08:47 -0700)]
fix mode fixmdoc.sed

6 years agoFix section in the .TH line of *.man.in file.
Todd C. Miller [Tue, 27 Nov 2018 20:15:08 +0000 (13:15 -0700)]
Fix section in the .TH line of *.man.in file.
The substitution for @mansectsu@ and @mansectform@ was broken.
No longer need to strip out OpenBSD from the header line.

6 years agoAdd sudoers.man.in.sed, missed from previous commit.
Todd C. Miller [Tue, 27 Nov 2018 15:33:51 +0000 (08:33 -0700)]
Add sudoers.man.in.sed, missed from previous commit.

6 years agoAdd Guillem Jover
Todd C. Miller [Tue, 27 Nov 2018 15:27:23 +0000 (08:27 -0700)]
Add Guillem Jover

6 years agorecent changes
Todd C. Miller [Tue, 27 Nov 2018 15:26:08 +0000 (08:26 -0700)]
recent changes

6 years agoUse roff conditionals in the manuals instead of post-processing.
Todd C. Miller [Tue, 27 Nov 2018 15:14:15 +0000 (08:14 -0700)]
Use roff conditionals in the manuals instead of post-processing.
We still need to process the resulting .man.in files to add back
the conditionals but this should be easier to debug as the changes
are visible in the .in file.
Some minor postprocessing is still used to make the manuals HP-UX
friendly and to change "0 seconds" -> unlimited after substitution.

6 years agoSudo plugin manual updates and clarification from Guillem Jover:
Todd C. Miller [Sat, 24 Nov 2018 15:39:09 +0000 (08:39 -0700)]
Sudo plugin manual updates and clarification from Guillem Jover:
- Add missing return information for show_version().
- Fix prototypes for several function pointers.
- Update SUDO_API_VERSION_MINOR.
- Add missing references to log_suspend() and change_winsize().
- Add missing "array.".
- Clarify that argc can be zero on sudo -V.
- Clarify size requirements for conversation array arguments.
- Clarify timeout zero value for struct sudo_conv_message.
- Clarify initial and final state of reply in struct sudo_conv_reply.

6 years agoRevert changes to give arguments to the .Bx macro.
Todd C. Miller [Sat, 24 Nov 2018 15:34:03 +0000 (08:34 -0700)]
Revert changes to give arguments to the .Bx macro.
This is intended for things like .Bx 4.3 to generate "4.3BSD" so
the argument ends up before the BSD, not after.  Just go back to
using "BSD authentication" and "BSD login classes" so fixmdoc.sh
can operate correctly.  Bug #861

6 years agoUpdate fixmdoc.sh to match the BSD -> .Bx changes in the manuals.
Todd C. Miller [Fri, 23 Nov 2018 13:42:23 +0000 (06:42 -0700)]
Update fixmdoc.sh to match the BSD -> .Bx changes in the manuals.
Bug #861

6 years agoAdd support for utmps as found in HP-UX.
Todd C. Miller [Sun, 18 Nov 2018 14:45:43 +0000 (07:45 -0700)]
Add support for utmps as found in HP-UX.

6 years agoSupport st_nmtime in struct stat as found in HP-UX.
Todd C. Miller [Wed, 14 Nov 2018 20:37:46 +0000 (13:37 -0700)]
Support st_nmtime in struct stat as found in HP-UX.

6 years agoIf fcntl fails, fall back to the /proc implementation.
Todd C. Miller [Wed, 14 Nov 2018 20:37:45 +0000 (13:37 -0700)]
If fcntl fails, fall back to the /proc implementation.

6 years agoMention schema.olcSudo
Todd C. Miller [Mon, 12 Nov 2018 15:31:02 +0000 (08:31 -0700)]
Mention schema.olcSudo

6 years agoMention schema.olcSudo here too.
Todd C. Miller [Fri, 9 Nov 2018 18:02:34 +0000 (11:02 -0700)]
Mention schema.olcSudo here too.

6 years agoOpenLDAP schema file for Sudo in on-line configuration (OLC) format.
Todd C. Miller [Fri, 9 Nov 2018 17:38:49 +0000 (10:38 -0700)]
OpenLDAP schema file for Sudo in on-line configuration (OLC) format.
From Frederic Pasteleurs.

6 years agoUpdated translations from translationproject.org
Todd C. Miller [Fri, 9 Nov 2018 17:15:35 +0000 (10:15 -0700)]
Updated translations from translationproject.org

6 years agoOnly use closefrom_fallback() if no better method exists.
Todd C. Miller [Thu, 8 Nov 2018 22:17:39 +0000 (15:17 -0700)]
Only use closefrom_fallback() if no better method exists.
The previous logic was too fragile.

6 years agoUpdated translations from translationproject.org
Todd C. Miller [Wed, 7 Nov 2018 18:21:05 +0000 (11:21 -0700)]
Updated translations from translationproject.org

6 years agoPortuguese translation for sudo and sudoers from translationproject.org.
Todd C. Miller [Wed, 7 Nov 2018 18:20:27 +0000 (11:20 -0700)]
Portuguese translation for sudo and sudoers from translationproject.org.

6 years agoAdd sudo_gai_fatal, sudo_gai_vfatal, sudo_gai_vwarn, sudo_gai_warn
Todd C. Miller [Mon, 5 Nov 2018 16:08:05 +0000 (09:08 -0700)]
Add sudo_gai_fatal, sudo_gai_vfatal, sudo_gai_vwarn, sudo_gai_warn
and gai_log_warning that use gai_strerror() instead of strerror().

6 years agoFix memory leak in runaslist_matches().
Todd C. Miller [Wed, 31 Oct 2018 16:03:02 +0000 (10:03 -0600)]
Fix memory leak in runaslist_matches().

6 years agotypo
Todd C. Miller [Mon, 29 Oct 2018 15:23:25 +0000 (09:23 -0600)]
typo

6 years agoregen
Todd C. Miller [Mon, 29 Oct 2018 14:32:36 +0000 (08:32 -0600)]
regen

6 years agoMore updates for 1.8.26
Todd C. Miller [Mon, 29 Oct 2018 12:19:59 +0000 (06:19 -0600)]
More updates for 1.8.26

6 years agoAdd support for negated sudoRunAsUser and sudoRunAsGroup entries.
Todd C. Miller [Sun, 28 Oct 2018 21:46:27 +0000 (15:46 -0600)]
Add support for negated sudoRunAsUser and sudoRunAsGroup entries.

6 years agoDocument that the target user's groups may be specified via the -g option.
Todd C. Miller [Sat, 27 Oct 2018 18:52:17 +0000 (12:52 -0600)]
Document that the target user's groups may be specified via the -g option.

6 years agoInclude getpwent() version of sudo_getgrouplist2_v1() from getgrouplist.c
Todd C. Miller [Sat, 27 Oct 2018 18:10:43 +0000 (12:10 -0600)]
Include getpwent() version of sudo_getgrouplist2_v1() from getgrouplist.c

6 years agoUse a testsudoers group file with known contents instead of the system one.
Todd C. Miller [Sat, 27 Oct 2018 16:57:37 +0000 (10:57 -0600)]
Use a testsudoers group file with known contents instead of the system one.

6 years agoAllow the group set by "sudo -g" to be any of the target user's groups.
Todd C. Miller [Sat, 27 Oct 2018 12:37:34 +0000 (06:37 -0600)]
Allow the group set by "sudo -g" to be any of the target user's groups.
Previously, this was only allowed if the group matched the target
user's primary group ID (from the passwd database entry).
The sudoers policy will now allow the group if it is one of the
target user's supplemental groups as well.

6 years agoSkip sudo_getgrouplist2() check on systems with getgrouplist_2().
Todd C. Miller [Fri, 26 Oct 2018 17:11:58 +0000 (11:11 -0600)]
Skip sudo_getgrouplist2() check on systems with getgrouplist_2().
sudo_getgrouplist2() is just a wrapper on such systems and this
avoids a test failure on macOS where a user is automatically a
member of certain groups.

6 years agoAdd missing exported symbol sudo_term_eof
Todd C. Miller [Fri, 26 Oct 2018 16:45:12 +0000 (10:45 -0600)]
Add missing exported symbol sudo_term_eof

6 years agoAdd missing #ifdef LDAP_OPT_X_TLS_REQUIRE_CERT
Todd C. Miller [Fri, 26 Oct 2018 16:34:16 +0000 (10:34 -0600)]
Add missing #ifdef LDAP_OPT_X_TLS_REQUIRE_CERT
Fixes problems building on older LDAP sdks.

6 years agoadd getgrouplist_test.c
Todd C. Miller [Fri, 26 Oct 2018 16:26:27 +0000 (10:26 -0600)]
add getgrouplist_test.c

6 years agoCheck the user's primary gid from the passwd file too.
Todd C. Miller [Fri, 26 Oct 2018 16:24:38 +0000 (10:24 -0600)]
Check the user's primary gid from the passwd file too.

6 years agoignore prologue
Todd C. Miller [Fri, 26 Oct 2018 16:10:52 +0000 (10:10 -0600)]
ignore prologue

6 years agoConvert PVS-Studio comment to ANSI C.
Todd C. Miller [Fri, 26 Oct 2018 14:39:09 +0000 (08:39 -0600)]
Convert PVS-Studio comment to ANSI C.

6 years agoFix some mangled text in the license block.
Todd C. Miller [Fri, 26 Oct 2018 14:19:41 +0000 (08:19 -0600)]
Fix some mangled text in the license block.

6 years agoAdd regress test for sudo_getgrouplist2().
Todd C. Miller [Fri, 26 Oct 2018 12:52:46 +0000 (06:52 -0600)]
Add regress test for sudo_getgrouplist2().
This test assumes all the groups in root's group list can
be resolved by group ID.

6 years agoMore changes in 1.8.26
Todd C. Miller [Thu, 25 Oct 2018 15:04:52 +0000 (09:04 -0600)]
More changes in 1.8.26

6 years agoAdd padding option to cvtsudoers.
Todd C. Miller [Thu, 25 Oct 2018 14:40:25 +0000 (08:40 -0600)]
Add padding option to cvtsudoers.
Bug #856

6 years agoRemove an errant grset++ in the AIX version of sudo_getgrouplist2().
Todd C. Miller [Thu, 25 Oct 2018 13:17:31 +0000 (07:17 -0600)]
Remove an errant grset++ in the AIX version of sudo_getgrouplist2().
Bug #857

6 years agoPass --sourcetree-root to pvs-studio and don't check sudo_noexec.c.
Todd C. Miller [Mon, 22 Oct 2018 15:12:17 +0000 (09:12 -0600)]
Pass --sourcetree-root to pvs-studio and don't check sudo_noexec.c.
Since we don't auto-generate dependencies for sudo_noexec.c we
can't easily check it from outside the source tree.  This
is not a problem as it just contains stub functions.

6 years agoAsturian translation for sudo from translationproject.org
Todd C. Miller [Mon, 22 Oct 2018 12:21:59 +0000 (06:21 -0600)]
Asturian translation for sudo from translationproject.org

6 years agoAdd support for CLOCK_MONOTONIC_RAW and CLOCK_UPTIME_RAW, present
Todd C. Miller [Sun, 21 Oct 2018 21:24:33 +0000 (15:24 -0600)]
Add support for CLOCK_MONOTONIC_RAW and CLOCK_UPTIME_RAW, present
on macOS.

6 years agoAdd --enable-pvs-studio configure option to create PVS-Studio.cfg.
Todd C. Miller [Sun, 21 Oct 2018 14:46:09 +0000 (08:46 -0600)]
Add --enable-pvs-studio configure option to create PVS-Studio.cfg.

6 years agoAdd pvs-studio target and associated production rules.
Todd C. Miller [Sun, 21 Oct 2018 14:46:05 +0000 (08:46 -0600)]
Add pvs-studio target and associated production rules.

6 years agoAdd comments in .c files so PVS-Studio will check them.
Todd C. Miller [Sun, 21 Oct 2018 14:46:05 +0000 (08:46 -0600)]
Add comments in .c files so PVS-Studio will check them.

6 years agoSimplify range checks.
Todd C. Miller [Sat, 20 Oct 2018 14:47:12 +0000 (08:47 -0600)]
Simplify range checks.
No need to check for ERANGE in the cases where we also check
that the value is <= INT_MAX.  Found by PVS-Studio.

6 years agoAvoid some PVS-Studio false positives.
Todd C. Miller [Fri, 19 Oct 2018 19:35:20 +0000 (13:35 -0600)]
Avoid some PVS-Studio false positives.