add debug log and regen ar

This commit is contained in:
lxsang 2022-02-23 09:49:29 +01:00
parent 0072734269
commit 034db74685
4 changed files with 36 additions and 16 deletions

Binary file not shown.

View File

@ -1,5 +1,5 @@
{
"name": "antd-tunnel-publishers",
"name": "ant-http",
"targets":{
"configure": {
"require": ["linux"],
@ -7,36 +7,31 @@
{
"name": "linux-exec",
"data": {
"cmd":"libtoolize",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"libtoolize"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"aclocal",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"aclocal"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"autoconf",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"autoconf"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"automake --add-missing",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"automake --add-missing"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"./configure --prefix=/usr --enable-debug=no",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"./configure --prefix=/opt/www"
}
}
]
@ -47,8 +42,7 @@
{
"name": "linux-exec",
"data": {
"cmd":"make clean",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"make clean"
}
}
]
@ -59,8 +53,7 @@
{
"name": "linux-exec",
"data": {
"cmd":"make",
"pwd": "home://workspace/antd-tunnel-publishers"
"cmd":"make"
}
}
]
@ -68,6 +61,24 @@
"clean and build": {
"depend": ["clean", "build"],
"jobs": []
},
"release": {
"require": ["linux"],
"depend": ["clean"],
"jobs": [
{
"name": "linux-exec",
"data": {
"cmd":"make distcheck"
}
},
{
"name": "linux-exec",
"data": {
"cmd":"mv *.tar.gz dist"
}
}
]
}
}
}

Binary file not shown.

View File

@ -133,8 +133,9 @@ int init_fifo(char *buff, const char *base, const char *user)
(void)memset(buff, 0, BUFFLEN);
if (stat(base, &path_stat) == 0)
{
if (S_ISREG(path_stat.st_mode))
if (S_ISDIR(path_stat.st_mode))
{
M_DEBUG(MODULE_NAME, "%s is a directory", base);
// is directory
if (user == NULL)
{
@ -151,6 +152,14 @@ int init_fifo(char *buff, const char *base, const char *user)
}
uid = pwd->pw_uid;
}
else
{
M_DEBUG(MODULE_NAME, "%s is not a directory", base);
}
}
else
{
M_DEBUG(MODULE_NAME, "Unable to state %s: %s", base, strerror(errno));
}
if (generic_fd)
{