mirror of
https://github.com/lxsang/antd-tunnel-publishers
synced 2025-08-31 00:01:58 +02:00
add debug log and regen ar
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user