head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.54 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.52 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.50 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.48 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.46 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.44 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.42 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.40 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.38 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.36 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.34 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.32 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.30 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.28 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.26 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.24 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 netbsd-1-6-1:1.5.0.2 netbsd-1-6-1-base:1.5 buildlink2-base:1.4 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2003.10.05.17.55.34; author martti; state dead; branches; next 1.5; 1.5 date 2002.12.13.14.19.55; author tron; state Exp; branches; next 1.4; 1.4 date 2001.03.26.13.46.21; author bad; state dead; branches; next 1.3; 1.3 date 2001.01.10.06.03.15; author briggs; state Exp; branches; next 1.2; 1.2 date 99.12.13.20.36.24; author bad; state dead; branches; next 1.1; 1.1 date 99.05.06.23.37.01; author tv; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.05.06.23.37.01; author tv; state Exp; branches; next ; desc @@ 1.6 log @Updated mysql-server to 3.23.58 A lot of bug and security fixes since 3.23.51... @ text @$NetBSD: patch-ak,v 1.5 2002/12/13 14:19:55 tron Exp $ --- sql/sql_parse.cc.orig Thu Feb 14 18:30:14 2002 +++ sql/sql_parse.cc Fri Dec 13 14:46:28 2002 @@@@ -105,6 +105,8 @@@@ NET *net= &thd->net; thd->db=0; + if (passwd[0] && strlen(passwd) != SCRAMBLE_LENGTH) + return 1; if (!(thd->user = my_strdup(user, MYF(0)))) { send_error(net,ER_OUT_OF_RESOURCES); @@@@ -764,8 +766,8 @@@@ thread_safe_increment(com_other,&LOCK_thread_count); slow_command = TRUE; char* data = packet + 1; - uint db_len = *data; - uint tbl_len = *(data + db_len + 1); + uint db_len = *(uchar *)*data; + uint tbl_len = *(uchar *)(data + db_len + 1); char* db = sql_alloc(db_len + tbl_len + 2); memcpy(db, data + 1, db_len); char* tbl_name = db + db_len; @ 1.5 log @Fix security problem in MySQL client library and server which were recently discovered by e-matters. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update to mysql-3.23.35. Enable use of tcp_wrappers in the server. BDB and Innobase table types are not configured in, so no transaction support yet. The 3.23 release has several major features that are not present in previous versions. We have added new table types: MyISAM, a new ISAM library which is tuned for SQL and supports large files; BDB, which uses the Berkeley DB library from Sleepycat Software to implement transaction-safe tables; INNOBASE, which uses the Innobase database backend to implement transaction-safe tables. The 3.23 release also includes support for database replication between a master and many slaves, full-text indexing, and much more. For a detailed list of changes see appendix E of the online documentation at http://www.mysql.com/. The replication code and BerkeleyDB code is still not as tested and as the rest of the code, so we will probably need to do a couple of future releases of 3.23 with small fixes for this part of the code. As long as you don't use these features, you should be quite safe with MySQL 3.23! Note that the above doesn't mean that replication or Berkeley DB doesn't work; We have done a lot of testing of all code, including replication and BDB without finding any problems. It only means that not as many users uses this code as the rest of the code and because of this we are not yet 100 % confident in this code. @ text @d1 1 a1 1 $NetBSD: patch-ak,v 1.3 2001/01/10 06:03:15 briggs Exp $ d3 22 a24 50 *** /dev/null Wed Dec 31 19:00:00 1969 --- mit-pthreads/machdep/syscall-template-powerpc-netbsd.S Tue Jan 9 22:35:59 2001 *************** *** 0 **** --- 1,45 ---- + #include + #define COMPAT_43 + #include + + #ifdef SYS___sigsuspend14 + #define SYS_sigsuspend SYS___sigsuspend14 + #endif + + #ifdef SYS___sigaction14 + #define SYS_sigaction SYS___sigaction14 + #endif + + #ifdef SYS___sigprocmask14 + #define SYS_sigprocmask SYS___sigprocmask14 + #endif + + #undef SYSCALL + + /* Kernel syscall interface: + Input: + 0 - system call number + 3-8 - arguments, as in C + Output: + so - (summary overflow) clear iff successful + + This macro is similar to SYSCALL in asm.h, but not completely. + There's room for optimization, if we assume this will continue to + be assembled as one file. + + This macro expansions does not include the return instruction. + If there's no other work to be done, use something like: + SYSCALL(foo) ; ret + If there is other work to do (in fork, maybe?), do it after the + SYSCALL invocation. */ + + #define SYSCALL(x) \ + ENTRY(machdep_sys_ ## x) \ + li 0, SYS_ ## x ; \ + sc ; \ + bnslr ; \ + b PIC_PLT(_C_LABEL(machdep_cerror)) + + #define XSYSCALL(x) SYSCALL(x) ; blr + + XSYSCALL(SYSCALL_NAME) @ 1.3 log @Add support for NetBSD-*-powerpc to embedded mit-pthreads, and enable this package for same. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update MySQL to 3.22.27. There are a bunch of bug fixes to the server. For a complete list see the documentation. Also, get rid of USE_GMAKE. The normal make works just fine. Delete a whole bunch of patches that have been integrated into the distribution. Update the mit-pthreads patches to use _C_LABEL where appropriate so that mit-pthreads works on ELF and a.out for the affected platforms. @ text @d1 1 a1 1 $NetBSD: patch-ak,v 1.1 1999/05/06 23:37:01 tv Exp $ d3 50 a52 122 --- mit-pthreads/pthreads/fd_kern.c.orig Wed Nov 26 09:43:02 1997 +++ mit-pthreads/pthreads/fd_kern.c Sat Mar 20 23:41:26 1999 @@@@ -575,6 +575,7 @@@@ off_t __fd_kern_lseek(union fd_data fd_data, int f, off_t offset, int whence) { int fd = fd_data.i; + extern off_t machdep_sys_lseek(int, off_t, int); off_t ret=machdep_sys_lseek(fd, offset, whence); if ((long) ret < 0L && (long) ret >= -255L) { @@@@ -1096,7 +1097,11 @@@@ /* ========================================================================== * bind() */ +#ifdef _OS_HAS_SOCKLEN_T +int bind(int fd, const struct sockaddr *name, socklen_t namelen) +#else int bind(int fd, const struct sockaddr *name, int namelen) +#endif { /* Not much to do in bind */ int ret; @@@@ -1118,7 +1123,11 @@@@ /* ========================================================================== * connect() */ +#ifdef _OS_HAS_SOCKLEN_T +int connect(int fd, const struct sockaddr *name, socklen_t namelen) +#else int connect(int fd, const struct sockaddr *name, int namelen) +#endif { struct sockaddr tmpname; int ret, tmpnamelen; @@@@ -1170,7 +1179,11 @@@@ /* ========================================================================== * accept() */ +#ifdef _OS_HAS_SOCKLEN_T +int accept(int fd, struct sockaddr *name, socklen_t *namelen) +#else int accept(int fd, struct sockaddr *name, int *namelen) +#endif { int ret, fd_kern; @@@@ -1377,8 +1390,13 @@@@ /* ========================================================================== * sendto() */ +#ifdef _OS_HAS_SOCKLEN_T +ssize_t sendto(int fd, const void * msg, size_t len, int flags, + const struct sockaddr *to, socklen_t to_len) +#else ssize_t sendto(int fd, const void * msg, size_t len, int flags, const struct sockaddr *to, int to_len) +#endif { return(sendto_timedwait(fd, msg, len, flags, to, to_len, NULL)); } @@@@ -1629,8 +1647,13 @@@@ /* ========================================================================== * recvfrom() */ +#ifdef _OS_HAS_SOCKLEN_T +ssize_t recvfrom(int fd, void * buf, size_t len, int flags, + struct sockaddr * from, socklen_t * from_len) +#else ssize_t recvfrom(int fd, void * buf, size_t len, int flags, struct sockaddr * from, int * from_len) +#endif { return(recvfrom_timedwait(fd, buf, len, flags, from, from_len, NULL)); } @@@@ -1788,7 +1811,11 @@@@ /* ========================================================================== * setsockopt() */ +#ifdef _OS_HAS_SOCKLEN_T +int setsockopt(int fd, int level, int optname, const void * optval, socklen_t optlen) +#else int setsockopt(int fd, int level, int optname, const void * optval, int optlen) +#endif { int ret; @@@@ -1810,7 +1837,11 @@@@ /* ========================================================================== * getsockopt() */ +#ifdef _OS_HAS_SOCKLEN_T +int getsockopt(int fd, int level, int optname, void * optval, socklen_t * optlen) +#else int getsockopt(int fd, int level, int optname, void * optval, int * optlen) +#endif { int ret; @@@@ -1832,7 +1863,11 @@@@ /* ========================================================================== * getsockname() */ +#ifdef _OS_HAS_SOCKLEN_T +int getsockname(int fd, struct sockaddr * name, socklen_t * naddrlen) +#else int getsockname(int fd, struct sockaddr * name, int * naddrlen) +#endif { int ret; @@@@ -1854,7 +1889,11 @@@@ /* ========================================================================== * getpeername() */ +#ifdef _OS_HAS_SOCKLEN_T +int getpeername(int fd, struct sockaddr * peer, socklen_t * paddrlen) +#else int getpeername(int fd, struct sockaddr * peer, int * paddrlen) +#endif { int ret; @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-ak,v 1.2 1999/04/08 21:54:36 bad Exp $ @ 1.1.1.1 log @Second half of the split mysql pkg (server). Works on alpha, arm32, i386, and sparc (more to come when this works properly with PTL2). @ text @@