ccanlint: fix directory issues properly.
[ccan] / tools / ccanlint / ccanlint.c
index 968f655e397f2719217bd4d8ed8f49002787175e..064e40d869d6703da46270ce16e67a95488d3895 100644 (file)
@@ -255,8 +255,6 @@ int main(int argc, char *argv[])
                        prefix = talloc_append_string(talloc_basename(NULL,
                                                                      optarg),
                                                      ": ");
-                       if (chdir(optarg) != 0)
-                               err(1, "Changing into directory '%s'", optarg);
                        break;
                case 's':
                        summary = true;