📄 changelog.0
字号:
Tue Feb 18 22:09:51 1997 Miles Bader <miles@gnu.ai.mit.edu> * iumacros.m4 (IU_CONFIG_PATHS): Use `set' instead of `read' with a here document, because the latter fucks up in some shells.Tue Feb 18 20:14:48 1997 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.in: Add AC_STRUCT_ST_BLKSIZE test. * ftp/cmds.c: Include glob.h last, it defines "const" to null which breaks some system headers. * ftp/ftp.c (recvrequest): Handle missing st_blksize member. * ftp/ftp_var.h: Make all declarations extern except in one file to avoid conflicts when linking. * ftp/main.c (FTP_EXTERN): Activate this macro so the declarations in ftp/ftp_var.h become definitions. * ftpd/ftpcmd.y: Include glob.h last, it defines "const" to null which breaks some system headers. * ftpd/popen.c: Likewise. * ftpd/ftpd.c: Likewise. Also handle missing st_blksize member. * headers/acconfig.h: Normalize variable argument list usage. Also add support to handle missing st_blksize member. * libinetutils/snprintf.c: Normalize variable argument list usage. * libinetutils/snprintf.h: Likewise. Also constify DATA.pf member. * rcp/util.c: Handle missing st_blksize member. * rexecd/rexecd.c: Make environ extern to avoid link time conflicts. * rshd/rshd.c: Likewise. * telnetd/ext.h: Make terminaltype and line be extern to avoid link time conflicts. * telnetd/sys_term.c (rmut): protect use of ut_host member. * telnetd/telnetd.c (main, doit): Likewise. (utmp_len): Only declare if HAVE_UTMP_UT_HOST. * tftp/extern.h (toplevel): New declaration. * tftp/tftp.c (toplevel): Duplicate definition removed. * uucpd/uucpd.c (dologout): Remove unused status variable. Add a case for HAVE_WAITPID. Tue Feb 18 01:13:16 1997 Miles Bader <miles@gnu.ai.mit.edu> From Alain Magloire <alain.magloire@rcsm.ee.mcgill.ca>: * ftpd/ftpd.c (dologout): Small race condition with SIGURG (D. Greenman) * ftpd/popen.c (popen): Buffer overflow in argv[] (AUSCERT) * ftpd/ftpcmd.y: check_login for PASV (*Hobbit) * libinetutils/version.c (inetutils_version): Change to `1.2l'. * libinetutils/snprintf.c (vsnprintf): New function, slightly modified from snprintf. [!HAVE_SNPRINTF] (snprintf): Now a wrapper that calls vsnprintf. Change param types to match conventional signature. [HAVE_CONFIG_H] <config.h>: New include. From Marcus Daniels <marcus@sysc.pdx.edu>: * configure.in (AC_REPLACE_FUNCS): Add xstrup & getusershell. (vsnprintf): Check for, and possibly replace, this function. * headers/acconfig.h: Declare vsnprintf if the system doesn't. (HAVE_VSNPRINTF): New define slot. * rules.make ($(bindir)/%: % $(bindir)): If $(INST_PROG_FLAGS) is non-empty, only do the install if we're root. * libinetutils/Makefile.in (SRCS): Add getusershell.c & xstrdup.c.Mon Feb 17 15:08:59 1997 Miles Bader <miles@gnu.ai.mit.edu> * libinetutils/version.c (inetutils_version): Change to `1.2k'. From Alain Magloire <alain.magloire@rcsm.ee.mcgill.ca>: * talkd/announce.c (strvis): Use '\007' for systems that don't recognize '\a'. (announce): Don't pass TF argument to print_mesg. (print_mesg): Remove TF parameter. Free VIS_USER after we're done with it. * talkd/process.c (process_request): Cast 0 argument to htonl. * libinetutils/ttymsg.c (ttymsg): Add check for dangerous values of LINE, and guard against buffer overflow. * Makefile.in (DISTFILES): Add THANKS. * THANKS: New file. * libinetutils/snprintf.c: Real snprintf replacement, from Alain Magloire <alain.magloire@rcsm.ee.mcgill.ca>. * libinetutils/snprintf.h: New file. * libinetutils/Makefile.in (DISTFILES): Add snprintf.h. From NIIBE Yutaka <gniibe@mri.co.jp>: * telnetd/sys_term.c (scrub_env): New function. (start_login): Use it. * ftp/ruserpass.c (ruserpass): Use snprintf instead of sprintf. * ftpd/ftpd.c (retrieve): Likewise. * telnetd/utility.c (fatal, fatalperror): Likewise. * telnetd/sys_term.c (startslave, start_login): Likewise. * talkd/announce.c (print_mesg): Likewise. * syslogd/syslogd.c (main, fprintlog, cfline): Likewise. * rlogind/rlogind.c (fatal): Likewise. * rexecd/rexecd.c (error): Likewise. * ping/ping.c (pr_addr): Likewise. * inetd/inetd.c (set_proc_title): Likewise. * iumacros.m4 (IU_LIB_TERMCAP): See if -lcurses works too. (IU_LIB_CURSES): Don't check whether curses needs termcap if $LIBCURSES == $LIBTERMCAP.Sun Feb 16 21:45:02 1997 Miles Bader <miles@gnu.ai.mit.edu> * telnetd/defs.h, rlogind/rlogind.c, rlogin/rlogin.c <sys/proc.h>: Include removed.Thu Jan 23 18:25:01 1997 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.in: Add checks for sys/proc.h, sys/select.h and sys/time.h. Add AC_HEADER_TIME check. Add checks for seteuid, setegid, setreuid, setregid, setresuid, setresgid, killpg, setlinebuf, utimes and utime. Add AC_FUNC_SETVBUF_REVERSED and AC_FUNC_VFORK tests. * ftp/cmds.c: Use TIME_WITH_SYS_TIME macro for time.h headers. * ftp/ftp.c: Likewise. Also include sys/select.h for fd_set on AIX. * ftp/ftp_var.h: Make declarations of mapin/mapout be extern so they don't collide with their definitions below. * ftpd/ftpcmd.y: Include sys/types.h and use TIME_WITH_SYS_TIME macro. Also make declarations of cmttab/sitetab be extern so they don't collide with their definitions below. * ftpd/ftpd.c: Use TIME_WITH_SYS_TIME macro. * headers/acconfig.h: Provide fallback definitions for killpg, seteuid and setegid. * inetd/inetd.c: Include sys/types.h, use TIME_WITH_SYS_TIME macro and include sys/select.h. * libinetutils/xmalloc.c: New file (to support alloca.c.) * libinetutils/Makefile.in: Add xmalloc.c to $(SRCS), add xmalloc.o to $(OBJS). * libinetutils/cleansess.c: Use TIME_WITH_SYS_TIME macro. * libinetutils/iruserok.c: Likewise. * libinetutils/logout.c: Likewise. * libinetutils/logwtmp.c: Likewise. * libinetutils/localhost.c: Include stdlib.h to prototype malloc(). * libtelnet/spx.c (spx_send, spx_is): remove superfluous casts. * rcp/rcp.c: Use TIME_WITH_SYS_TIME macro. Use utime() if utimes() is missing. Cast 4th arg of setsockopt() in toremote() and tolocal() functions. * rexecd/rexecd.c: Include sys/types.h, use TIME_WITH_SYS_TIME macro and include sys/select.h. * rlogin/rlogin.c: Include sys/types.h and use TIME_WITH_SYS_TIME macro. Include sys/proc.h on hpux only. Cast 4th arg of setsockopt() in main(). * rlogind/rlogind.c: Use TIME_WITH_SYS_TIME macro. Include sys/proc.h on hpux only. Include sys/select.h. Cast 4th arg of setsockopt() in main(). * rsh/rsh.c: Use TIME_WITH_SYS_TIME macro. Include sys/select.h. Cast 4th arg of setsockopt() in main(). * rshd/rshd.c: Use TIME_WITH_SYS_TIME macro. Include sys/select.h. * syslogd/syslogd.c: Use TIME_WITH_SYS_TIME macro. Include sys/select.h. Include syslog.h, not sys/syslog.h. Handle missing setlinebuf() function in main(). * talk/ctl_transact.c: Use TIME_WITH_SYS_TIME macro. Include sys/select.h. * talk/get_names.c: Include sys/types.h. * talk/invite.c: Use TIME_WITH_SYS_TIME macro. * talk/io.c: Use TIME_WITH_SYS_TIME macro. Include sys/select.h. * talk/msgs.c: Use TIME_WITH_SYS_TIME macro. * talkd/announce.c: Use TIME_WITH_SYS_TIME macro. Include stdlib.h to prototype malloc(). Remove superfluous cast of malloc() in function print_mesg(). * talkd/table.c: Use TIME_WITH_SYS_TIME macro. * talkd/talkd.c: Use TIME_WITH_SYS_TIME macro. * telnet/commands.c: Include stdlib.h to prototype malloc(). Only prototype strchr()/strrchr()/htons() if they are not macros. Avoid superfluous cast of malloc() in function env_init(). * telnet/externs.h: Include termio.h & termios.h, not sys/termio.h & sys/termios.h. * telnet/main.c: Only prototype strrchr() if its not a macro. * telnet/network.c: Use TIME_WITH_SYS_TIME macro. Include sys/select.h. * telnet/sys_bsd.c: Likewise. * telnet/telnet.c: Include stdlib.h to prototype malloc(). * telnet/utilities.c: Use TIME_WITH_SYS_TIME macro. * telnetd/defs.h: Use TIME_WITH_SYS_TIME macro. Include sys/proc.h on hpux only. Do #undef SE to avoid redecl warnings. * telnetd/telnetd.c (telnet): Do #undef HE to avoid redecl warnings. * telnetd/utility.c (edithost, putf): Only prototype strncpy()/strchr()/strrchr() if they are not macros. * tftp/tftp.c: Use TIME_WITH_SYS_TIME macro. * uucpd/uucpd.c: Likewise. Also, wrap comments after #else and #endif with /* */ in all cases.Fri Jan 24 14:17:08 1997 Miles Bader <miles@gnu.ai.mit.edu> * libinetutils/version.c (inetutils_version): Change to `1.2j'. * iumacros.m4 (IU_CONFIG_PATHS): Temporarily suppress autoconf quoting around regexps containing "[" and "]". * paths (PATH_UTMP, PATH_WTMP, PATH_LASTLOG): Add /var/adm to file search path. * config.make.in (CPPFLAGS): Add $(CPPFLAGS-$(<F)). * libinetutils/Makefile.in (CPPFLAGS): Remove $(CPPFLAGS-$(<F)). (CPPFLAGS-logout.c, CPPFLAGS-logwtmp.c, CPPFLAGS-logwtmpko.c, CPPFLAGS-ttymsg.c, CPPFLAGS-cleansess.c, CPPFLAGS-daemon.c): New variables. (CPPFLAGS): Variable removed. * telnet/commands.c (set_mode): Renamed from setmode, to avoid conflict with netbsd <unistd.h>; all references changed. (clear_mode): Renamed from clearmode, for consistency with setmode; all references changed. * iumacros.m4 (IU_LIB_NCURSES): New macro. (IU_LIB_TERMCAP): Use IU_LIB_NCURSES, and prefer ncurses as the termcap library when it exists. (IU_LIB_CURSES): Special case ncurses (it never requires termcap). (_iu_curses_needs_termcap): Macro removed. * uucpd/uucpd.c (doit): Use PATH_UUCICO instead of _PATH_UUCICO. (dologin): Use PATH_LASTLOG instead of _PATH_LASTLOG. [HAVE_UTMP_H] <utmp.h>: New include. * uucpd/Makefile.in (CPPFLAGS): Add $(PATHDEF_LASTLOG). Use $(PATHDEF_UUCICO) instead of old wrong define.Thu Jan 23 13:12:03 1997 Miles Bader <miles@gnu.ai.mit.edu> * libinetutils/version.c (libinetutils_version): Change to `1.2i'. * configure.in: Move general library tests before any function tests. * telnetd/sys_term.c (login_tty): Use setpgid instead of setpgrp. * telnet/commands.c: Protect includes with HAVE_..._H rather than random system defines. (tn): Protect declaration of htons with !HAVE_HTONS_DECL. * configure.in (htons): Add new declaration check. (AC_CHECK_HEADERS): Add sys/param.h, unistd.h, sys/file.h & fcntl.h. * headers/acconfig.h (HAVE_HTONS_DECL): New define slot. * telnetd/sys_term.c (wtmpf): Initialize from PATH_WTMP. [!PARENT_DOES_UTMP] (utmpf): Initialize from PATH_UTMP. [NEWINIT && HAVE_UTMP_H && HAVE_UTMP_UT_TV] (HAVE_WTMP_UT_TV): New macro. [NEWINIT && HAVE_UTMPX_H && HAVE_UTMPX_UT_TV] (HAVE_WTMP_UT_TV): New macro. * configure.in: Check for ut_tv in struct utmpx, not struct wtmp. Only do tests using <utmp.h> / <utmpx.h> when they exist. * headers/acconfig.h (HAVE_UTMPX_UT_TV): Renamed from HAVE_WTMP_UT_TV. * telnetd/Makefile.in (CPPFLAGS): Add $(PATHDEF_UTMP) & $(PATHDEF_WTMP). * libinetutils/stub_tgetent.c (tgetent): Add missing semi.Wed Jan 22 20:51:31 1997 Miles Bader <miles@gnu.ai.mit.edu> * libinetutils/version.c (inetutils_version): Change to `1.2h'.Tue Jan 21 15:32:56 1997 Miles Bader <miles@gnu.ai.mit.edu> * libinetutils/openpty.c (openpty): Only use TIOCSWINSZ if it's defined. * configure.in: Add existance & decl tests for h_errno. * headers/acconfig.h (HAVE_H_ERRNO, HAVE_H_ERRNO_DECL): New define slots.Mon Jan 20 20:35:53 1997 Miles Bader <miles@gnu.ai.mit.edu> * libinetutils/herror.c (herror): New file. * configure.in (AC_REPLACE_FUNCS): Add herror. * libinetutils/Makefile.in (SRCS): Add herror.c. * rsh/rsh.c (main): Always use sigset_t & OSIGS & SIGS variables, and pass a pointer to the talk function. (talk): Always use a pointer for the OSIGS arg (was OMASK). * headers/acconfig.h (HAVE_UTMP_UT_TV, sigset_t): Add define slots. * telnetd/sys_term.c (rmut): Use HAVE_WTMP_UT_TV rather than HAVE_UTMPX_H || HAVE_UTMP_UT_TV. * configure.in (sigset_t): New type replacement. Add check for ut_tv field in struct wtmp.Wed Jan 15 16:52:31 1997 Miles Bader <miles@gnu.ai.mit.edu> * ftpd/ftpd.c (makedir): Provide the absolute name of the new directory in the reply, as per rfc959.Mon Jan 20 19:55:30 1997 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * ftp/extern.h (command): Constify fmt argument. * ftp/ftp.c (command): Normalize variable argument list usage. Require both HAVE_STDARG_H && __STDC__==1 to allow inclusion of <stdarg.h> and use of ellipses, failing either we fall back on <varargs.h> and va_alist. Ensure stdarg.h/varargs.h appears before syslog.h in all cases to avoid problems on solaris. * ftp/ruserpass.c: Likewise. * ftpd/ftpd.c (reply, lreply, setproctitle): Likewise. * headers/err.h: Likewise. * libinetutils/err.c (warn, warnx, err, errx): Likewise. * libinetutils/snprintf.c (snprintf): Likewise. * rcp/rcp.c (oldw, run_err): Likewise. * rlogin/rlogin.c (warning): Likewise. * rsh/rsh.c (warning): Likewise. * rshd/rshd.c (error): Likewise. * telnet/commands.c (call): Likewise.Mon Jan 13 22:17:38 1997 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.in (AC_CHECK_HEADERS): Add sys/sysmacros.h for solaris to get the roundup() macro. (AC_CHECK_FUNCS): Add waitpid(). * ftp/cmds.c: Don't declare "union wait status". Its never used and causes problems for posix sys/wait.h. Consequently, pass 0 to the wait() function. Add an (ignored) int parameter to function passed to signal(). * ftp/ftp.c: Likewise for functions passed to signal(). * ftp/main.c: Likewise for functions passed to signal(). * ftpd/popen.c: Add POSIX signal handling. * inetd/inetd.c: Likewise. * libinetutils/ttymsg.c: Likewise. * rcp/rcp.c: Change macro MODEMASK to RCP_MODEMASK to avoid conflict with solaris sys/vnode.h header. * rcp/util.c: Include sys/sysmacros.h for solaris to get the roundup() macro. * rexecd/rexecd.c: Use O_RDWR instead of "2" in call to open(). * rlogind/rlogind.c: Don't define FD_SETSIZE, let OS headers do it. * rsh/rsh.c: Add POSIX signal handling. * rshd/rshd.c: Use O_RDWR instead of "2" in call to open(). * syslogd/syslogd.c: Test MSG_BSIZE, not HAVE_SYS_MSGBUF_H, when deciding if we have MSG_BSIZE. Add POSIX signal handling. Optionally use waitpid(). Also, don't declare "union wait status", its never used and causes problems for posix sys/wait.h. Consequently, pass 0 to the waitpid()/wait3() functions. * talk/ctl_transact.c: Use fd_set not int for file descriptor set. Also set mask with FD_SET, not an explicit bit shift operation. * talk/init_disp.c: Fix POSIX signal handling. * talk/invite.c: Cast 2nd arg of sendto() to (const char *). * talk/msgs.c: Add an (ignored) int parameter to function passed to signal(). * telnet/sys_bsd.c: Add POSIX signal handling. * telnetd/sys_term.c: Check HAVE_UTMP_UT_HOST before using ut_host. Also, check HAVE_UTMPX_H||HAVE_UTMP_UT_TV before using ut_tv field. * telnetd/telnetd.c: Use O_RDWR instead of "2" in call to open(). * telnetd/termstat.c: Evaluate tty_istrapsig() not tty_istrapsig. * tftp/tftp.c: Cast 2nd arg of sendto() to (const char *). Also cast 2nd arg of recvfrom() to (char *). * tftpd/tftpd.c: Include sys/filio.h. Use O_RDONLY & O_WRONLY instead of "0" & "1" in call to open(). Add an (ignored) int parameter to function passed to signal(). Cast the 2nd arg of
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -