X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;fp=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;h=44a5d361315086007d9b0a1cd7c1c37208921432;hb=7b9d3ecad044318bdd54b8b80acbf85fc89d25ab;hp=f412b259e221644433565381f442180409dfa5e3;hpb=f08e0b94fc225a62c0370b049ca12804520e67ce;p=citadel.git diff --git a/citadel/modules/ctdlproto/serv_file.c b/citadel/modules/ctdlproto/serv_file.c index f412b259e..44a5d3613 100644 --- a/citadel/modules/ctdlproto/serv_file.c +++ b/citadel/modules/ctdlproto/serv_file.c @@ -1,7 +1,7 @@ /* * Server functions which handle file transfers and room directories. * - * Copyright (c) 1987-2017 by the citadel.org team + * Copyright (c) 1987-2018 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -407,28 +407,6 @@ void cmd_ucls(char *cmd) fclose(CC->upload_fp); CCC->upload_fp = NULL; - if ((!strcasecmp(cmd, "1")) && (CCC->upload_type != UPL_FILE)) { - cprintf("%d Upload completed.\n", CIT_OK); - - if (CCC->upload_type == UPL_NET) { - char final_filename[PATH_MAX]; - snprintf(final_filename, sizeof final_filename, "%s/%s.%04lx.%04x", ctdl_netin_dir, CCC->net_node, (long)getpid(), ++seq); - - if (link(CCC->upl_path, final_filename) == 0) { - syslog(LOG_INFO, "serv_file: ucls updoaded %s", final_filename); - unlink(CCC->upl_path); - } - else { - syslog(LOG_INFO, "serv_file: cannot link %s to %s: %s", - CCC->upl_path, final_filename, strerror(errno) - ); - } - } - - CCC->upload_type = UPL_FILE; - return; - } - if (!strcasecmp(cmd, "1")) { cprintf("%d File '%s' saved.\n", CIT_OK, CCC->upl_path); fp = fopen(CCC->upl_filedir, "a");