파일 이름이 없는 파일은 받지 않음

pull/540/head
root 2021-11-26 18:17:24 +00:00
parent e69e2cdd97
commit 9261f718b8
1 changed files with 9 additions and 2 deletions

View File

@ -32,7 +32,14 @@ int main(int argc, char *argv[])
log_init(); log_init();
g_log_context.log_level = LOG_ERR; g_log_context.log_level = LOG_ERR;
ignore_signal_pipe(); ignore_signal_pipe();
if(fdfs_client_init(conf_filename)==NULL)
{
printf("file: "__FILE__", line:%d, "\
"open filename %s fail, " \
"errno: %d, error info: %s\n",\
__LINE__,filename,errno,STRERROR(errno));
return errno !=0 ? errno : EACCES;
}
conf_filename = argv[1]; conf_filename = argv[1];
if ((result=fdfs_client_init(conf_filename)) != 0) if ((result=fdfs_client_init(conf_filename)) != 0)
{ {