summaryrefslogtreecommitdiff
path: root/net-p2p/dctc/files/patch-src::dc_manage.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2005-10-16 07:41:55 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2005-10-16 07:41:55 +0000
commit40a3261d1a6e2617f6afde0cd6d762a7e211af7a (patch)
treed70bbf882801af3a4e58dde3ed6a1da1849479d4 /net-p2p/dctc/files/patch-src::dc_manage.c
parentFix the string format vulnerability desribed at (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_0_0'.release/6.0.0
Diffstat (limited to 'net-p2p/dctc/files/patch-src::dc_manage.c')
-rw-r--r--net-p2p/dctc/files/patch-src::dc_manage.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/net-p2p/dctc/files/patch-src::dc_manage.c b/net-p2p/dctc/files/patch-src::dc_manage.c
deleted file mode 100644
index b9475fd2baf4..000000000000
--- a/net-p2p/dctc/files/patch-src::dc_manage.c
+++ /dev/null
@@ -1,77 +0,0 @@
---- src/dc_manage.c.orig Mon Jul 22 13:20:19 2002
-+++ src/dc_manage.c Mon Jul 22 18:18:40 2002
-@@ -554,18 +554,6 @@
-
- unconvert_path(fullpathname);
-
-- if(!file_in_db(fullpathname,&virtual)) /* is it a shared file ? */
-- {
-- GString *err_msg;
--
-- err_msg=g_string_new("$Error ");
-- g_string_sprintfa(err_msg,"%s no more exists",fullpathname);
-- disp_msg(DEBUG_MSG,"com_up_get_process","file not found",err_msg->str,NULL);
-- send_dc_line(sck,err_msg->str,NULL);
-- g_string_free(err_msg,TRUE);
-- return 1;
-- }
--
- if(hide_absolute==0)
- {
- if(((unsigned char)fullpathname[0])==255)
-@@ -580,6 +568,18 @@
- fullpathname[0]='/';
- }
-
-+ if(!file_in_db(fullpathname,&virtual)) /* is it a shared file ? */
-+ {
-+ GString *err_msg;
-+
-+ err_msg=g_string_new("$Error ");
-+ g_string_sprintfa(err_msg,"%s no more exists",fullpathname);
-+ disp_msg(DEBUG_MSG,"com_up_get_process","file not found",err_msg->str,NULL);
-+ send_dc_line(sck,err_msg->str,NULL);
-+ g_string_free(err_msg,TRUE);
-+ return 1;
-+ }
-+
- /* it is time to verify if a slot is available */
- LOCK_WRITE(user_info);
- if((dl_on==0)||(virtual!=0))
-@@ -743,18 +743,6 @@
-
- unconvert_path(fullpathname);
-
-- if(!file_in_db(fullpathname,&virtual)) /* is it a shared file ? */
-- {
-- GString *err_msg;
--
-- err_msg=g_string_new("$Error ");
-- g_string_sprintfa(err_msg,"%s no more exists",fullpathname);
-- disp_msg(DEBUG_MSG,"com_up_getfilelength_process","file not found",err_msg->str,NULL);
-- send_dc_line(sck,err_msg->str,NULL);
-- g_string_free(err_msg,TRUE);
-- return 1;
-- }
--
- if(hide_absolute==0)
- {
- if(((unsigned char)fullpathname[0])==255)
-@@ -769,6 +757,17 @@
- fullpathname[0]='/';
- }
-
-+ if(!file_in_db(fullpathname,&virtual)) /* is it a shared file ? */
-+ {
-+ GString *err_msg;
-+
-+ err_msg=g_string_new("$Error ");
-+ g_string_sprintfa(err_msg,"%s no more exists",fullpathname);
-+ disp_msg(DEBUG_MSG,"com_up_getfilelength_process","file not found",err_msg->str,NULL);
-+ send_dc_line(sck,err_msg->str,NULL);
-+ g_string_free(err_msg,TRUE);
-+ return 1;
-+ }
-
- if(send_file_length(sck,fullpathname,&file_len))
- {