2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-03 15:55:40 +00:00

crank version to 1.6

This commit is contained in:
Todd C. Miller
1999-12-05 02:18:47 +00:00
parent a183816d27
commit c6136f9764
16 changed files with 86 additions and 71 deletions

4
BUGS
View File

@@ -1,5 +1,5 @@
Known bugs in sudo version 1.6 Known bugs in sudo version 1.6.1
============================== ================================
1) "make install-man" should substitute correct paths into the 1) "make install-man" should substitute correct paths into the
man pages themselves. man pages themselves.

14
CHANGES
View File

@@ -1184,3 +1184,17 @@ Sudo 1.5.9 released.
to be character at a time. to be character at a time.
372) sudo now turns off core dumps via setrlimit (probably paranoia). 372) sudo now turns off core dumps via setrlimit (probably paranoia).
Sudo 1.6 released.
373) Better diagnostics on PAM failure.
374) Killed shell_noargs option, it cannot work since the command needs to
be set before sudoers is parsed.
375) Fixed the following Defaults options: set_home, fqdn, syslog
376) When using select() in tgetpass(), do a separate select before
each read to be sure we can timeout correctly.
377) Hopefully fix SecurID support.

View File

@@ -78,7 +78,7 @@ SHELL = /bin/sh
PROGS = sudo visudo PROGS = sudo visudo
VERSION = 1.6 VERSION = 1.6.1
all: $(PROGS) all: $(PROGS)
@echo run 'make install' to install sudo @echo run 'make install' to install sudo

View File

@@ -138,7 +138,7 @@ TESTOBJS = interfaces.o testsudoers.o $(PARSEOBJS)
LIBOBJS = @LIBOBJS@ @ALLOCA@ LIBOBJS = @LIBOBJS@ @ALLOCA@
VERSION = 1.6 VERSION = 1.6.1
DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES FAQ HISTORY INSTALL INSTALL.configure \ DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES FAQ HISTORY INSTALL INSTALL.configure \
LICENSE Makefile.in PORTING README RUNSON TODO TROUBLESHOOTING \ LICENSE Makefile.in PORTING README RUNSON TODO TROUBLESHOOTING \

2
README
View File

@@ -1,4 +1,4 @@
This is Sudo version 1.6 This is Sudo version 1.6.1
The sudo philosophy The sudo philosophy
=================== ===================

18
RUNSON
View File

@@ -7,14 +7,14 @@ Name Rev Arch Used Version By Options
======= ======= ======= =============== ======= =============== =============== ======= ======= ======= =============== ======= =============== ===============
Auspex 1.6.1 sun4 bundled cc 1.3.4 Alek Komarnitsky none Auspex 1.6.1 sun4 bundled cc 1.3.4 Alek Komarnitsky none
SunOS 4.1.3 sun4 bundled cc 1.4 Todd Miller none SunOS 4.1.3 sun4 bundled cc 1.4 Todd Miller none
SunOS 4.1.3 sun4 gcc2.7.2.1 1.6 Todd Miller none SunOS 4.1.3 sun4 gcc2.7.2.1 1.6.1 Todd Miller none
SunOS 4.1.3 sun4 gcc2.7.2.1 1.5.3 Todd Miller --with-kerb4 SunOS 4.1.3 sun4 gcc2.7.2.1 1.5.3 Todd Miller --with-kerb4
SunOS 4.1.3 sun4 gcc2.7.2.1 1.6 Todd Miller --with-skey SunOS 4.1.3 sun4 gcc2.7.2.1 1.6.1 Todd Miller --with-skey
Solaris 2.5.1 sparc SC4.0 1.5.6p1 Brian Jackson none Solaris 2.5.1 sparc SC4.0 1.5.6p1 Brian Jackson none
Solaris 2.5.1 sun4u gcc2.7.2.3 1.5.4 Leon von Stauber none Solaris 2.5.1 sun4u gcc2.7.2.3 1.5.4 Leon von Stauber none
Solaris 2.5.1 i386 gcc2.7.2 1.5.4 Leon von Stauber none Solaris 2.5.1 i386 gcc2.7.2 1.5.4 Leon von Stauber none
Solaris 2.6 sparc gcc2.7.2.1 1.6 Todd Miller none Solaris 2.6 sparc gcc2.7.2.1 1.6.1 Todd Miller none
Solaris 2.6 i386 gcc2.7.2.1 1.6 Todd Miller none Solaris 2.6 i386 gcc2.7.2.1 1.6.1 Todd Miller none
Solaris 2.6 sparc unbundled cc 1.5.7 Giff Hammar none Solaris 2.6 sparc unbundled cc 1.5.7 Giff Hammar none
Solaris 2.6 i386 unbundled cc 1.5.8p2 Udo Keller none Solaris 2.6 i386 unbundled cc 1.5.8p2 Udo Keller none
Solaris 7 i386 gcc 2.8.1 1.6 Brian Jackson none Solaris 7 i386 gcc 2.8.1 1.6 Brian Jackson none
@@ -31,7 +31,7 @@ HP-UX 9.05 hp700 gcc2.7.2.1 1.5.3 Todd Miller none
HP-UX 9.05 hp700 gcc2.7.2.1 1.5.3 Todd Miller --with-kerb4 HP-UX 9.05 hp700 gcc2.7.2.1 1.5.3 Todd Miller --with-kerb4
HP-UX 9.07 hp700 unbundled cc 1.5 Alek Komarnitsky --with-C2 HP-UX 9.07 hp700 unbundled cc 1.5 Alek Komarnitsky --with-C2
HP-UX 9.05 hp700 unbundled cc 1.4 Todd Miller none HP-UX 9.05 hp700 unbundled cc 1.4 Todd Miller none
HP-UX 10.20 hp700 gcc2.7.2.1 1.6 Todd Miller --with-skey HP-UX 10.20 hp700 gcc2.7.2.1 1.6.1 Todd Miller --with-skey
HP-UX 10.10 hp700 unbundled cc 1.5.5b4 Todd Miller --with-skey HP-UX 10.10 hp700 unbundled cc 1.5.5b4 Todd Miller --with-skey
HP-UX 10.20 PA-RISC1.1 bundled cc 1.5.4 Leon von Stauber none HP-UX 10.20 PA-RISC1.1 bundled cc 1.5.4 Leon von Stauber none
HP-UX 10.20 PA-RISC2.0 bundled cc 1.5.4 Leon von Stauber none HP-UX 10.20 PA-RISC2.0 bundled cc 1.5.4 Leon von Stauber none
@@ -47,7 +47,7 @@ IRIX 5.3 mips MipsPro C 1.5.6p1 Brian Jackson none
IRIX 6.2 mips MipsPro C 1.5.6p1 Brian Jackson none IRIX 6.2 mips MipsPro C 1.5.6p1 Brian Jackson none
IRIX 6.5 mips MipsPro C 1.5.6p1 Brian Jackson none IRIX 6.5 mips MipsPro C 1.5.6p1 Brian Jackson none
IRIX 5.3 mips unbundled cc 1.4 Todd Miller none IRIX 5.3 mips unbundled cc 1.4 Todd Miller none
IRIX 5.3 mips gcc2.7.2.1 1.6 Todd Miller --with-skey IRIX 5.3 mips gcc2.7.2.1 1.6.1 Todd Miller --with-skey
IRIX 5.3 mips gcc2.7.2.1 1.5.3 Todd Miller --with-kerb4 IRIX 5.3 mips gcc2.7.2.1 1.5.3 Todd Miller --with-kerb4
IRIX 5.3 mips unbundled cc 1.4 Wallace Winfrey --with-C2 IRIX 5.3 mips unbundled cc 1.4 Wallace Winfrey --with-C2
IRIX 6.2 mips unbundled cc 1.5 Alek Komarnitsky --with-C2 IRIX 6.2 mips unbundled cc 1.5 Alek Komarnitsky --with-C2
@@ -65,7 +65,7 @@ NEXTSTEP 3.2 i386 bundled cc 1.3.2 Jonathan Adams none
NEXTSTEP 3.3 i386 bundled cc 1.4 Jonathan Adams none NEXTSTEP 3.3 i386 bundled cc 1.4 Jonathan Adams none
NEXTSTEP 3.3 sparc bundled cc 1.5.3 Mike Kienenberger none NEXTSTEP 3.3 sparc bundled cc 1.5.3 Mike Kienenberger none
DEC UNIX 3.2c alpha bundled cc 1.5.3 Todd Miller none DEC UNIX 3.2c alpha bundled cc 1.5.3 Todd Miller none
DEC UNIX 4.0D alpha gcc-2.7.2.1 1.6 Todd Miller --with-skey DEC UNIX 4.0D alpha gcc-2.7.2.1 1.6.1 Todd Miller --with-skey
DEC UNIX 4.0 alpha gcc-2.7.2.1 1.5.3 Todd Miller --with-kerb4 DEC UNIX 4.0 alpha gcc-2.7.2.1 1.5.3 Todd Miller --with-kerb4
DEC UNIX 4.0D alpha bundled cc 1.5.3 Randall R. Cable --with-C2 DEC UNIX 4.0D alpha bundled cc 1.5.3 Randall R. Cable --with-C2
DEC UNIX 4.0E alpha bundled cc 1.5.9p2 Vangelis Haniotakis none DEC UNIX 4.0E alpha bundled cc 1.5.9p2 Vangelis Haniotakis none
@@ -81,7 +81,7 @@ AIX 4.3.2 rs6000 egcs 1.1.2 1.5.9p4 Scott Kinnane none
ConvexOS 9.1 convex bundled cc 1.3.6 Todd Miller none ConvexOS 9.1 convex bundled cc 1.3.6 Todd Miller none
ConvexOS 9.1 convex gcc2.4.5 1.3.6 Todd Miller none ConvexOS 9.1 convex gcc2.4.5 1.3.6 Todd Miller none
BSD/OS 2.1 i386 shlicc 1.5.3 Todd Miller none BSD/OS 2.1 i386 shlicc 1.5.3 Todd Miller none
OpenBSD 2.X i586 gcc-2.8.1 1.6 Todd Miller none OpenBSD 2.X i586 gcc-2.8.1 1.6.1 Todd Miller none
OpenBSD 2.X alpha gcc-2.8.1 1.5.9 Todd Miller none OpenBSD 2.X alpha gcc-2.8.1 1.5.9 Todd Miller none
OpenBSD 2.X m68k gcc-2.8.1 1.5.9 Todd Miller none OpenBSD 2.X m68k gcc-2.8.1 1.5.9 Todd Miller none
FreeBSD 1.1 i386 gcc 1.3.2 Dworkin Muller none FreeBSD 1.1 i386 gcc 1.3.2 Dworkin Muller none
@@ -90,7 +90,7 @@ FreeBSD 3.2 i386 gcc 2.7.2.1 1.6 Brian Jackson none
Linux 1.2.13 i486 gcc-2.7.0 1.4 Michael Forman none Linux 1.2.13 i486 gcc-2.7.0 1.4 Michael Forman none
Linux 1.2.8 i486 gcc-2.5.8 1.3.5 Ted Coady --with-C2 Linux 1.2.8 i486 gcc-2.5.8 1.3.5 Ted Coady --with-C2
Linux 2.0.15 i586 gcc-2.7.2.1 1.5 Danny Barron none Linux 2.0.15 i586 gcc-2.7.2.1 1.5 Danny Barron none
Linux 2.0.36 i586 gcc 2.8.1 1.6 Todd Miller none Linux 2.0.36 i586 gcc 2.8.1 1.6.1 Todd Miller none
Linux 2.0.34 i586 egcs-2.91.57 1.5.6p2 Darrin Chandler none Linux 2.0.34 i586 egcs-2.91.57 1.5.6p2 Darrin Chandler none
Linux 2.0.36 i586 gcc-2.7.2.3 1.5.7p4 Nathan Haney none Linux 2.0.36 i586 gcc-2.7.2.3 1.5.7p4 Nathan Haney none
Linux 2.0.34 alpha egcs-2.90.27 1.5.3 Karl Schlitt none Linux 2.0.34 alpha egcs-2.90.27 1.5.3 Karl Schlitt none

2
configure vendored
View File

@@ -657,7 +657,7 @@ fi
echo "Configuring Sudo version 1.6" echo "Configuring Sudo version 1.6.1"
PROGS="sudo visudo" PROGS="sudo visudo"
CPPFLAGS="" CPPFLAGS=""
LDFLAGS="" LDFLAGS=""

View File

@@ -9,7 +9,7 @@ AC_CONFIG_HEADER(config.h pathnames.h)
dnl dnl
dnl This won't work before AC_INIT() dnl This won't work before AC_INIT()
dnl dnl
echo "Configuring Sudo version 1.6" echo "Configuring Sudo version 1.6.1"
dnl dnl
dnl Variables that get substituted in the Makefile dnl Variables that get substituted in the Makefile
dnl dnl

View File

@@ -61,7 +61,7 @@ OOOOPPPPTTTTIIIIOOOONNNNSSSS
28/Nov/1999 1.6 1 4/Dec/1999 1.6.1 1
@@ -127,7 +127,7 @@ RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEES
28/Nov/1999 1.6 2 4/Dec/1999 1.6.1 2
@@ -193,7 +193,7 @@ SSSSEEEECCCCUUUURRRRIIIITTTTYYYY NNNNOOOOTTTTE
28/Nov/1999 1.6 3 4/Dec/1999 1.6.1 3
@@ -259,7 +259,7 @@ FFFFIIIILLLLEEEESSSS
28/Nov/1999 1.6 4 4/Dec/1999 1.6.1 4
@@ -325,7 +325,7 @@ CCCCAAAAVVVVEEEEAAAATTTTSSSS
28/Nov/1999 1.6 5 4/Dec/1999 1.6.1 5
@@ -391,6 +391,6 @@ SSSSEEEEEEEE AAAALLLLSSSSOOOO
28/Nov/1999 1.6 6 4/Dec/1999 1.6.1 6

View File

@@ -2,8 +2,8 @@
''' $RCSfile$$Revision$$Date$ ''' $RCSfile$$Revision$$Date$
''' '''
''' $Log$ ''' $Log$
''' Revision 1.41 1999/11/29 01:57:04 millert ''' Revision 1.42 1999/12/05 02:18:47 millert
''' fix some syntactic goofs ''' crank version to 1.6
''' '''
''' '''
.de Sh .de Sh
@@ -96,7 +96,7 @@
.nr % 0 .nr % 0
.rr F .rr F
.\} .\}
.TH sudo 8 "1.6" "28/Nov/1999" "MAINTENANCE COMMANDS" .TH sudo 8 "1.6.1" "4/Dec/1999" "MAINTENANCE COMMANDS"
.UC .UC
.if n .hy 0 .if n .hy 0
.if n .na .if n .na

View File

@@ -61,7 +61,7 @@ DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
2/Dec/1999 1.6 1 4/Dec/1999 1.6.1 1
@@ -127,7 +127,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 2 4/Dec/1999 1.6.1 2
@@ -193,7 +193,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 3 4/Dec/1999 1.6.1 3
@@ -259,7 +259,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 4 4/Dec/1999 1.6.1 4
@@ -325,7 +325,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 5 4/Dec/1999 1.6.1 5
@@ -391,7 +391,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 6 4/Dec/1999 1.6.1 6
@@ -457,7 +457,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 7 4/Dec/1999 1.6.1 7
@@ -523,7 +523,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 8 4/Dec/1999 1.6.1 8
@@ -589,7 +589,7 @@ EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
2/Dec/1999 1.6 9 4/Dec/1999 1.6.1 9
@@ -655,7 +655,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 10 4/Dec/1999 1.6.1 10
@@ -721,7 +721,7 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 11 4/Dec/1999 1.6.1 11
@@ -787,7 +787,7 @@ SSSSEEEEEEEE AAAALLLLSSSSOOOO
2/Dec/1999 1.6 12 4/Dec/1999 1.6.1 12
@@ -853,6 +853,6 @@ sudoers(5) FILE FORMATS sudoers(5)
2/Dec/1999 1.6 13 4/Dec/1999 1.6.1 13

View File

@@ -2,14 +2,8 @@
''' $RCSfile$$Revision$$Date$ ''' $RCSfile$$Revision$$Date$
''' '''
''' $Log$ ''' $Log$
''' Revision 1.17 1999/12/02 20:31:24 millert ''' Revision 1.18 1999/12/05 02:18:47 millert
''' o Kill shell_noargs option, it cannot work since the command needs to ''' crank version to 1.6
''' be set before sudoers is parsed.
''' o Fix the "set_home" sudoers option (only worked at compile time).
''' o Fix "fqdn" sudoers option. We now set host/shost via set_fqdn which
''' gets called when the "fqdn" option is set in sudoers.
''' o Move the openlog() to store_syslogfac() so this gets overridden
''' correctly from the sudoers file.
''' '''
''' '''
.de Sh .de Sh
@@ -102,7 +96,7 @@
.nr % 0 .nr % 0
.rr F .rr F
.\} .\}
.TH sudoers 5 "1.6" "2/Dec/1999" "FILE FORMATS" .TH sudoers 5 "1.6.1" "4/Dec/1999" "FILE FORMATS"
.UC .UC
.if n .hy 0 .if n .hy 0
.if n .na .if n .na

View File

@@ -188,6 +188,9 @@ tgetline(fd, buf, bufsiz, timeout)
if (bufsiz == 0) if (bufsiz == 0)
return(NULL); /* sanity */ return(NULL); /* sanity */
cp = buf;
left = bufsiz;
/* /*
* Timeout of <= 0 means no timeout. * Timeout of <= 0 means no timeout.
*/ */
@@ -196,29 +199,33 @@ tgetline(fd, buf, bufsiz, timeout)
n = howmany(fd + 1, NFDBITS) * sizeof(fd_mask); n = howmany(fd + 1, NFDBITS) * sizeof(fd_mask);
readfds = (fd_set *) emalloc(n); readfds = (fd_set *) emalloc(n);
(void) memset((VOID *)readfds, 0, n); (void) memset((VOID *)readfds, 0, n);
FD_SET(fd, readfds);
/* Set timeout for select */ /* Set timeout for select */
tv.tv_sec = timeout; tv.tv_sec = timeout;
tv.tv_usec = 0; tv.tv_usec = 0;
/* while (--left) {
* Make sure there is something to read or timeout FD_SET(fd, readfds);
*/
/* Make sure there is something to read (or timeout) */
while ((n = select(fd + 1, readfds, 0, 0, &tv)) == -1 && while ((n = select(fd + 1, readfds, 0, 0, &tv)) == -1 &&
errno == EINTR) errno == EINTR)
; ;
if (n == 0) if (n == 0)
return(NULL); /* timeout */ return(NULL); /* timeout */
}
if (readfds)
free(readfds);
/* Read a character, exit loop on error, EOF or EOL */
n = read(fd, &c, 1);
if (n != 1 || c == '\n')
break;
*cp++ = c;
}
free(readfds);
} else {
/* Keep reading until out of space, EOF, error, or newline */ /* Keep reading until out of space, EOF, error, or newline */
cp = buf;
left = bufsiz;
while (--left && (n = read(fd, &c, 1)) == 1 && c != '\n') while (--left && (n = read(fd, &c, 1)) == 1 && c != '\n')
*cp++ = c; *cp++ = c;
}
*cp = '\0'; *cp = '\0';
return(cp == buf ? NULL : buf); return(cp == buf ? NULL : buf);

View File

@@ -37,6 +37,6 @@
#ifndef _SUDO_VERSION_H #ifndef _SUDO_VERSION_H
#define _SUDO_VERSION_H #define _SUDO_VERSION_H
static const char version[] = "1.6"; static const char version[] = "1.6.1";
#endif /* _SUDO_VERSION_H */ #endif /* _SUDO_VERSION_H */

View File

@@ -61,7 +61,7 @@ EEEERRRRRRRROOOORRRRSSSS
28/Nov/1999 1.6 1 4/Dec/1999 1.6.1 1
@@ -127,7 +127,7 @@ SSSSEEEEEEEE AAAALLLLSSSSOOOO
28/Nov/1999 1.6 2 4/Dec/1999 1.6.1 2
@@ -193,6 +193,6 @@ visudo(8) MAINTENANCE COMMANDS visudo(8)
28/Nov/1999 1.6 3 4/Dec/1999 1.6.1 3

View File

@@ -2,8 +2,8 @@
''' $RCSfile$$Revision$$Date$ ''' $RCSfile$$Revision$$Date$
''' '''
''' $Log$ ''' $Log$
''' Revision 1.13 1999/11/29 01:57:04 millert ''' Revision 1.14 1999/12/05 02:18:47 millert
''' fix some syntactic goofs ''' crank version to 1.6
''' '''
''' '''
.de Sh .de Sh
@@ -96,7 +96,7 @@
.nr % 0 .nr % 0
.rr F .rr F
.\} .\}
.TH visudo 8 "1.6" "28/Nov/1999" "MAINTENANCE COMMANDS" .TH visudo 8 "1.6.1" "4/Dec/1999" "MAINTENANCE COMMANDS"
.UC .UC
.if n .hy 0 .if n .hy 0
.if n .na .if n .na