summaryrefslogtreecommitdiffstats
path: root/lib/libftp/FtpFilenameChecker.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-12-30 19:02:48 +0000
committerpeter <peter@FreeBSD.org>1995-12-30 19:02:48 +0000
commitab124e78b0271ddb904b761b31e5c9a0cf24e070 (patch)
tree0cf1447720c45721ed3d214a4eaaa6834bda155d /lib/libftp/FtpFilenameChecker.c
parent15748830d0fcd29294a1969a1012655e74908c1e (diff)
downloadFreeBSD-src-ab124e78b0271ddb904b761b31e5c9a0cf24e070.zip
FreeBSD-src-ab124e78b0271ddb904b761b31e5c9a0cf24e070.tar.gz
recording cvs-1.6 file death
Diffstat (limited to 'lib/libftp/FtpFilenameChecker.c')
-rw-r--r--lib/libftp/FtpFilenameChecker.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/libftp/FtpFilenameChecker.c b/lib/libftp/FtpFilenameChecker.c
deleted file mode 100644
index 99946eb..0000000
--- a/lib/libftp/FtpFilenameChecker.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Library for ftpd clients.(libftp)
- Copyright by Oleg Orel
- All rights reserved.
-
-This library is desined for free, non-commercial software creation.
-It is changeable and can be improved. The author would greatly appreciate
-any advises, new components and patches of the existing programs.
-Commercial usage is also possible with participation of it's author.
-*/
-
-#include "FtpLibrary.h"
-
-static char * simplename(char *s)
-{
- char *p;
-
- if ( (p=(char *)strrchr(s,'/')) == NULL )
- return s;
- return p+1;
-}
-
-
-
-
-STATUS FtpFilenameChecker(char ** in, char ** out)
-{
- struct stat st;
-
- if ( (stat(*out,&st) == 0) && S_ISDIR(st.st_mode))
- {
- char * sfn = simplename(*in);
- char * new = (char *) malloc ( strlen(*out)+ strlen(sfn) + 2 );
-
- strcpy(new,*out);
- strcat(new,"/");
- strcat(new,sfn);
- *out=new;
- return 0;
- };
- return 0;
-}
-
-
OpenPOWER on IntegriCloud