mirror of
https://github.com/kingk85/uFTP.git
synced 2025-04-20 00:18:57 +03:00
bug dprintf
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
dist/Debug/GNU-Linux/uftp
vendored
BIN
dist/Debug/GNU-Linux/uftp
vendored
Binary file not shown.
@ -515,8 +515,7 @@ int parseCommandCwd(clientDataType *theClientData)
|
||||
{
|
||||
setDynamicStringDataType(&theClientData->login.absolutePath, absolutePathPrevious.text, absolutePathPrevious.textLen);
|
||||
setDynamicStringDataType(&theClientData->login.ftpPath, ftpPathPrevious.text, ftpPathPrevious.textLen);
|
||||
|
||||
returnCode = dprintf(theClientData->socketDescriptor, "550 Can't change directory to %s: No such file or directory\r\n");
|
||||
returnCode = dprintf(theClientData->socketDescriptor, "550 Can't change directory to %s: No such file or directory\r\n", theClientData->login.absolutePath.text);
|
||||
}
|
||||
|
||||
if (returnCode <= 0) return FTP_COMMAND_PROCESSED_WRITE_ERROR;
|
||||
|
36
ftpData.c
36
ftpData.c
@ -467,28 +467,20 @@ void getListDataInfo(char * thePath, DYNV_VectorGenericDataType *directoryInfo)
|
||||
strftime(data.lastModifiedDataString, 80, "%b %d %Y", localtime(&data.lastModifiedData));
|
||||
|
||||
/*
|
||||
%a Abbreviated weekday name Sun
|
||||
%A Full weekday name Sunday
|
||||
%b Abbreviated month name Mar
|
||||
%B Full month name March
|
||||
%c Date and time representation Sun Aug 19 02:56:02 2012
|
||||
%d Day of the month (01-31) 19
|
||||
%H Hour in 24h format (00-23) 14
|
||||
%I Hour in 12h format (01-12) 05
|
||||
%j Day of the year (001-366) 231
|
||||
%m Month as a decimal number (01-12) 08
|
||||
%M Minute (00-59) 55
|
||||
%p AM or PM designation PM
|
||||
%S Second (00-61) 02
|
||||
%U Week number with the first Sunday as the first day of week one (00-53) 33
|
||||
%w Weekday as a decimal number with Sunday as 0 (0-6) 4
|
||||
%W Week number with the first Monday as the first day of week one (00-53) 34
|
||||
%x Date representation 08/19/12
|
||||
%X Time representation 02:50:06
|
||||
%y Year, last two digits (00-99) 01
|
||||
%Y Year 2012
|
||||
%Z Timezone name or abbreviation CDT
|
||||
%% A % sign %
|
||||
-1 List one file per line
|
||||
-A List all files except "." and ".."
|
||||
-a List all files including those whose names start with "."
|
||||
-C List entries by columns
|
||||
-d List directory entries instead of directory contents
|
||||
-F Append file type indicator (one of "*", "/", "=", "@" or "|") to names
|
||||
-h Print file sizes in human-readable format (e.g. 1K, 234M, 2G)
|
||||
-L List files pointed to by symlinks
|
||||
-l Use a long listing format
|
||||
-n List numeric UIDs/GIDs instead of user/group names
|
||||
-R List subdirectories recursively
|
||||
-r Sort filenames in reverse order
|
||||
-S Sort by file size
|
||||
-t Sort by modification time
|
||||
*/
|
||||
|
||||
directoryInfo->PushBack(directoryInfo, &data, sizeof(ftpListDataType));
|
||||
|
@ -169,7 +169,7 @@ void *connectionWorkerHandle(void * socketId)
|
||||
if (ftpData.clients[theSocketId].workerData.theStorFile == NULL)
|
||||
{
|
||||
perror("Can't open the file");
|
||||
returnCode = dprintf(ftpData.clients[theSocketId].socketDescriptor, "550 Unable to write the file\r\n");
|
||||
returnCode = dprintf(ftpData.clients[theSocketId].socketDescriptor, "553 Unable to write the file\r\n");
|
||||
|
||||
if (returnCode <= 0)
|
||||
{
|
||||
|
@ -101,8 +101,8 @@ void applyConfiguration(ftpParameters_DataType *ftpParameters)
|
||||
|
||||
if (returnCode == 1)
|
||||
{
|
||||
printf("\nThe process is already running..");
|
||||
exit(0);
|
||||
printf("\nThe process is already running..");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/home/ugo/NetBeansProjects/uFTP/ftpData.c</file>
|
||||
<file>file:/home/ugo/NetBeansProjects/uFTP/library/signals.c</file>
|
||||
<file>file:/home/ugo/NetBeansProjects/uFTP/ftpCommandElaborate.c</file>
|
||||
<file>file:/home/ugo/NetBeansProjects/uFTP/ftpServer.c</file>
|
||||
</group>
|
||||
</open-files>
|
||||
|
Reference in New Issue
Block a user