mariadb/client
Rohit Kalhans ff04c5bd6e BUG#11757312: MYSQLBINLOG DOES NOT ACCEPT INPUT FROM STDIN
WHEN STDIN IS A PIPE
            
Problem: Mysqlbinlog does not accept the input from STDIN when 
STDIN is a pipe. This prevents the users from passing the input file
through a shell pipe.    

Background: The my_seek() function does not check if the file descriptor
passed to it is regular (seekable) file. The check_header() function in
mysqlbinlog calls the my_b_seek() unconditionally and it fails when
the underlying file is a PIPE.  
            
Resolution: We resolve this problem by checking if the underlying file
is a regular file by using my_fstat() before calling my_b_seek(). 
If the underlying file is not seekable we skip the call to my_b_seek()
in check_header().

client/mysqlbinlog.cc:
  Added a check to avoid the my_b_seek() call if the
  underlying file is a PIPE.
2012-08-08 22:15:46 +05:30
..
.cvsignore
client_priv.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
CMakeLists.txt Updated/added copyright headers 2011-06-30 17:37:13 +02:00
completion_hash.cc WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
completion_hash.h - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
echo.c echo.c: 2007-03-20 18:31:49 +01:00
get_password.c fixes for build failures due to my yesterday's changeset forbidding 2008-02-19 18:45:11 +01:00
Makefile.am Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_readline.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mysql.cc Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysql_upgrade.c Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqladmin.cc Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqlbinlog.cc BUG#11757312: MYSQLBINLOG DOES NOT ACCEPT INPUT FROM STDIN 2012-08-08 22:15:46 +05:30
mysqlcheck.c Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqldump.c Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqlimport.c Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqlshow.c Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqlslap.c Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
mysqltest.cc Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST 2012-08-07 18:58:19 +05:30
readline.cc Build broken for gcc 4.5.1 in optimized mode. 2011-11-29 15:52:47 +01:00
sql_string.cc Updated/added copyright headers 2012-02-15 17:21:38 +01:00
sql_string.h Backport of Bug#14171740 65562: STRING::SHRINK SHOULD BE A NO-OP WHEN ALLOCED=0 2012-07-26 15:05:24 +02:00