yanglint REFACTOR removed searchdir check
... because it is not necessary, libyang will take care of it.
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 86696a6..1db3518 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -534,22 +534,10 @@
break;
case 'p': { /* --path */
- struct stat st;
-
- if (stat(optarg, &st) == -1) {
- YLMSG_E("Unable to use search path (%s) - %s.\n", optarg, strerror(errno));
- return -1;
- }
- if (!S_ISDIR(st.st_mode)) {
- YLMSG_E("Provided search path is not a directory.\n");
- return -1;
- }
-
if (searchpath_strcat(&yo->searchpaths, optarg)) {
YLMSG_E("Storing searchpath failed.\n");
return -1;
}
-
break;
} /* case 'p' */