diff options
author | unknown <monty@donna.mysql.fi> | 2001-05-29 13:46:17 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-05-29 13:46:17 +0300 |
commit | 9ad7aedb41feeddc5a872cf330197d6e3efc14ed (patch) | |
tree | 7f42d1149eac3fb84c4cbb7810d966b33a86fb72 /mysys/mf_pack.c | |
parent | 41dd2aa2b5a2f8b7a5d760bff26e8ceb2ce10fff (diff) | |
download | mariadb-git-9ad7aedb41feeddc5a872cf330197d6e3efc14ed.tar.gz |
Fixed problems with decimals withing IF()
Force add of FN_LIBCHAR to symlinks on windows
Docs/manual.texi:
Cleanup & Changelog
client/mysqladmin.c:
Added quoting for 'drop database'
client/mysqlcheck.c:
Fixed wrong comment syntax
libmysql/net.c:
Cleanup
mysql-test/mysql-test-run.sh:
Better error message.
mysql-test/r/func_test.result:
test for if()
mysql-test/t/func_test.test:
test for if()
mysys/mf_pack.c:
Force add of FN_LIBCHAR to symlinks on windows.
sql/item_cmpfunc.cc:
Fixed problems with decimals withing IF()
sql/mysqlbinlog.cc:
Better error messages.
sql/sql_repl.cc:
Better error messages.
Diffstat (limited to 'mysys/mf_pack.c')
-rw-r--r-- | mysys/mf_pack.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mysys/mf_pack.c b/mysys/mf_pack.c index c18d37888b8..b442af7e9e5 100644 --- a/mysys/mf_pack.c +++ b/mysys/mf_pack.c @@ -236,11 +236,16 @@ void symdirget(char *dir) *pos++=temp; *pos=0; /* Restore old filename */ if (fp) { - if (fgets(buff, sizeof(buff), fp)) + if (fgets(buff, sizeof(buff)-1, fp)) { for (pos=strend(buff); pos > buff && (iscntrl(pos[-1]) || isspace(pos[-1])) ; pos --); + + /* Ensure that the symlink ends with the directory symbol */ + if (pos == buff || pos[-1] != FN_LIBCHAR) + *pos++=FN_LIBCHAR; + strmake(dir,buff, (uint) (pos-buff)); } my_fclose(fp,MYF(0)); |