mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-08 09:18:30 +00:00
error messages
This commit is contained in:
parent
cfd444f361
commit
24d027e0b7
2
lsyncd.c
2
lsyncd.c
@ -841,10 +841,12 @@ bool buildpath(char *pathname,
|
|||||||
{
|
{
|
||||||
int len = builddir(pathname, pathsize, watch, prefix);
|
int len = builddir(pathname, pathsize, watch, prefix);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
|
printlogf(LOG_ERROR, "path too long!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (dirname) {
|
if (dirname) {
|
||||||
if (pathsize < len + strlen(dirname) + 1) {
|
if (pathsize < len + strlen(dirname) + 1) {
|
||||||
|
printlogf(LOG_ERROR, "path too long!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
strcat(pathname, dirname);
|
strcat(pathname, dirname);
|
||||||
|
Loading…
Reference in New Issue
Block a user