diff options
author | monty@mysql.com <> | 2003-12-12 22:26:58 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2003-12-12 22:26:58 +0200 |
commit | f995a5f4aa919d6d229d29fb652a263d8c816430 (patch) | |
tree | 771f288d33d415cb8e3d292f33e46fdb512d9dff /mysys | |
parent | fddab846d4f3658b3488cbec43c7d16f07f14594 (diff) | |
download | mariadb-git-f995a5f4aa919d6d229d29fb652a263d8c816430.tar.gz |
Fix autoincrement for signed columns (Bug #1366)
Fixed problem with char > 128 in QUOTE() function. (Bug #1868)
Disable creation of symlinks if my_disable_symlink is set
Fixed searching of TEXT with end space. (Bug #1651)
Fixed caching bug in multi-table-update where same table was used twice. (Bug #1711)
Fixed problem with UNIX_TIMESTAMP() for timestamps close to 0. (Bug #1998)
Fixed timestamp.test
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_symlink2.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mysys/my_symlink2.c b/mysys/my_symlink2.c index 68b034bec5c..913f632fbb4 100644 --- a/mysys/my_symlink2.c +++ b/mysys/my_symlink2.c @@ -31,9 +31,19 @@ File my_create_with_symlink(const char *linkname, const char *filename, File file; int tmp_errno; /* Test if we should create a link */ - int create_link=(linkname && strcmp(linkname,filename)); + int create_link; DBUG_ENTER("my_create_with_symlink"); + if (my_disable_symlinks) + { + /* Create only the file, not the link and file */ + create_link= 0; + if (linkname) + filename= linkname; + } + else + create_link= (linkname && strcmp(linkname,filename)); + if (!(MyFlags & MY_DELETE_OLD)) { if (!access(filename,F_OK)) |