Skip to content

Commit f0f115b

Browse files
committed
merge sudo 1.8.25p1 from tip
--HG-- branch : 1.8
2 parents a299f4d + 8e1e464 commit f0f115b

5 files changed

Lines changed: 19 additions & 11 deletions

File tree

NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
What's new in Sudo 1.8.25p1
2+
3+
* Fixed a bug introduced in sudo 1.8.25 that caused a crash on
4+
systems that have the poll() function but not the ppoll() function.
5+
Bug #851.
6+
17
What's new in Sudo 1.8.25
28

39
* Fixed a bug introduced in sudo 1.8.20 that broke formatting of

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for sudo 1.8.25.
3+
# Generated by GNU Autoconf 2.69 for sudo 1.8.25p1.
44
#
55
# Report bugs to <https://bugzilla.sudo.ws/>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='sudo'
592592
PACKAGE_TARNAME='sudo'
593-
PACKAGE_VERSION='1.8.25'
594-
PACKAGE_STRING='sudo 1.8.25'
593+
PACKAGE_VERSION='1.8.25p1'
594+
PACKAGE_STRING='sudo 1.8.25p1'
595595
PACKAGE_BUGREPORT='https://bugzilla.sudo.ws/'
596596
PACKAGE_URL=''
597597

@@ -1542,7 +1542,7 @@ if test "$ac_init_help" = "long"; then
15421542
# Omit some internal or obsolete options to make the list less imposing.
15431543
# This message is too long to be a string in the A/UX 3.1 sh.
15441544
cat <<_ACEOF
1545-
\`configure' configures sudo 1.8.25 to adapt to many kinds of systems.
1545+
\`configure' configures sudo 1.8.25p1 to adapt to many kinds of systems.
15461546

15471547
Usage: $0 [OPTION]... [VAR=VALUE]...
15481548

@@ -1607,7 +1607,7 @@ fi
16071607

16081608
if test -n "$ac_init_help"; then
16091609
case $ac_init_help in
1610-
short | recursive ) echo "Configuration of sudo 1.8.25:";;
1610+
short | recursive ) echo "Configuration of sudo 1.8.25p1:";;
16111611
esac
16121612
cat <<\_ACEOF
16131613

@@ -1872,7 +1872,7 @@ fi
18721872
test -n "$ac_init_help" && exit $ac_status
18731873
if $ac_init_version; then
18741874
cat <<\_ACEOF
1875-
sudo configure 1.8.25
1875+
sudo configure 1.8.25p1
18761876
generated by GNU Autoconf 2.69
18771877

18781878
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2581,7 +2581,7 @@ cat >config.log <<_ACEOF
25812581
This file contains any messages produced by compilers while
25822582
running configure, to aid debugging if configure makes a mistake.
25832583

2584-
It was created by sudo $as_me 1.8.25, which was
2584+
It was created by sudo $as_me 1.8.25p1, which was
25852585
generated by GNU Autoconf 2.69. Invocation command line was
25862586

25872587
$ $0 $@
@@ -27308,7 +27308,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2730827308
# report actual input values of CONFIG_FILES etc. instead of their
2730927309
# values after options handling.
2731027310
ac_log="
27311-
This file was extended by sudo $as_me 1.8.25, which was
27311+
This file was extended by sudo $as_me 1.8.25p1, which was
2731227312
generated by GNU Autoconf 2.69. Invocation command line was
2731327313

2731427314
CONFIG_FILES = $CONFIG_FILES
@@ -27374,7 +27374,7 @@ _ACEOF
2737427374
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2737527375
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2737627376
ac_cs_version="\\
27377-
sudo config.status 1.8.25
27377+
sudo config.status 1.8.25p1
2737827378
configured by $0, generated by GNU Autoconf 2.69,
2737927379
with options \\"\$ac_cs_config\\"
2738027380

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dnl
44
dnl Copyright (c) 1994-1996,1998-2018 Todd C. Miller <[email protected]>
55
dnl
66
AC_PREREQ([2.59])
7-
AC_INIT([sudo], [1.8.25], [https://bugzilla.sudo.ws/], [sudo])
7+
AC_INIT([sudo], [1.8.25p1], [https://bugzilla.sudo.ws/], [sudo])
88
AC_CONFIG_HEADER([config.h pathnames.h])
99
AC_CONFIG_SRCDIR([src/sudo.c])
1010
dnl

doc/CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ you believe you should be listed, please send a note to [email protected].
131131
Sato, Yuichi
132132
Sánchez, Wilfredo
133133
Sanders, Miguel
134+
Sasaki, Kan
134135
Saucier, Jean-Francois
135136
Schoenfeld, Patrick
136137
Schuring, Arno

lib/util/event_poll.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ sudo_ev_poll(struct pollfd *fds, nfds_t nfds, const struct timespec *timo)
144144
static int
145145
sudo_ev_poll(struct pollfd *fds, nfds_t nfds, const struct timespec *timo)
146146
{
147-
const int timeout = (timo->tv_sec * 1000) + (timo->tv_nsec / 1000000);
147+
const int timeout =
148+
timo ? (timo->tv_sec * 1000) + (timo->tv_nsec / 1000000) : -1;
148149

149150
return poll(fds, nfds, timeout);
150151
}

0 commit comments

Comments
 (0)