diff options
author | unknown <monty@hundin.mysql.fi> | 2001-06-01 03:53:14 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-06-01 03:53:14 +0300 |
commit | b4773dc2fb1ff3bbc88c44cdce5ffdcdf893433d (patch) | |
tree | 18a56f1559667b7d6f2f77918362b9fca42865a5 /mysys/mf_same.c | |
parent | 8c8244918fc37bb25656a5f8b451a362e4b16577 (diff) | |
download | mariadb-git-b4773dc2fb1ff3bbc88c44cdce5ffdcdf893433d.tar.gz |
Added symlink support to mysys library.
Docs/manual.texi:
Link info change
include/my_sys.h:
Added functions for symlink support
libmysql/Makefile.shared:
Added mf_symlink.c to library.
mysys/Makefile.am:
Added functions for symlink support
mysys/mf_same.c:
cleanup
mysys/my_symlink.c:
Added functions for symlink support
Diffstat (limited to 'mysys/mf_same.c')
-rw-r--r-- | mysys/mf_same.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mysys/mf_same.c b/mysys/mf_same.c index 5b8c5ecf970..c1a5cae11cb 100644 --- a/mysys/mf_same.c +++ b/mysys/mf_same.c @@ -20,19 +20,22 @@ #include "mysys_priv.h" #include <m_string.h> - /* Formaterar ett filnamn i avsende p} ett annat namn */ - /* Klarar {ven to = name */ - /* Denna funktion r|r inte p} utg}ngsnamnet */ + /* + Copy directory and/or extension between filenames. + (For the meaning of 'flag', check mf_format.c) + 'to' may be equal to 'name'. + Returns 'to'. + */ -my_string fn_same(my_string toname, const char *name, int flag) +my_string fn_same(char *to, const char *name, int flag) { char dev[FN_REFLEN]; const char *ext; DBUG_ENTER("fn_same"); - DBUG_PRINT("mfunkt",("to: %s name: %s flag: %d",toname,name,flag)); + DBUG_PRINT("enter",("to: %s name: %s flag: %d",to,name,flag)); if ((ext=strrchr(name+dirname_part(dev,name),FN_EXTCHAR)) == 0) ext=""; - DBUG_RETURN(fn_format(toname,toname,dev,ext,flag)); + DBUG_RETURN(fn_format(to,to,dev,ext,flag)); } /* fn_same */ |