파일 이름이 없는 파일은 받지 않음
parent
e69e2cdd97
commit
9261f718b8
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue