version 1.41, 2012/11/29 02:15:44 |
version 1.42, 2014/05/20 01:25:23 |
|
|
|
|
dirlen1 = strlcpy(path1, *p1 ? p1 : ".", sizeof(path1)); |
dirlen1 = strlcpy(path1, *p1 ? p1 : ".", sizeof(path1)); |
if (dirlen1 >= sizeof(path1) - 1) { |
if (dirlen1 >= sizeof(path1) - 1) { |
warnx("%s: %s", p1, strerror(ENAMETOOLONG)); |
warnc(ENAMETOOLONG, "%s", p1); |
status = 2; |
status = 2; |
return; |
return; |
} |
} |
|
|
} |
} |
dirlen2 = strlcpy(path2, *p2 ? p2 : ".", sizeof(path2)); |
dirlen2 = strlcpy(path2, *p2 ? p2 : ".", sizeof(path2)); |
if (dirlen2 >= sizeof(path2) - 1) { |
if (dirlen2 >= sizeof(path2) - 1) { |
warnx("%s: %s", p2, strerror(ENAMETOOLONG)); |
warnc(ENAMETOOLONG, "%s", p2); |
status = 2; |
status = 2; |
return; |
return; |
} |
} |