Commit Diff


commit - 96233476c269f24ce76cecadc2f5144632157d7b
commit + ef593b43ed4d545943bfb6ebdcc0b8a9c9450cd1
blob - 78e1afcd78a8d22217e61b225af34e82aa2556fa
blob + ab3abced1476bfe2180c7604ac204231a47dc2b0
--- ctl.c
+++ ctl.c
@@ -320,9 +320,9 @@ ctlaction(struct parse_result *res)
 	case ADD:
 		done = 0;
 		for (i = 0; res->files[i] != NULL; ++i) {
-			memset(&path, 0, sizeof(path));
-			if (realpath(res->files[i], path) == NULL) {
-				log_warn("realpath %s", res->files[i]);
+			if (canonpath(res->files[i], path, sizeof(path))
+			    == -1) {
+				log_warn("canonpath %s", res->files[i]);
 				continue;
 			}