{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/cudpp/issues/25","labels_url":"https://api.github.com/repos/byzhang/cudpp/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/cudpp/issues/25/comments","events_url":"https://api.github.com/repos/byzhang/cudpp/issues/25/events","html_url":"https://github.com/byzhang/cudpp/issues/25","id":59730868,"number":25,"title":"findFile/findDir search in wrong direction, and therefore find wrong path if the startDir is repeated in the path","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/cudpp/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Component-Tests","name":"Component-Tests","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Milestone-Release2.0","name":"Milestone-Release2.0","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-04T00:22:30Z","updated_at":"2015-03-04T00:22:32Z","closed_at":"2015-03-04T00:22:31Z","body":"```\nWhen CUDPP is in a path that has the name \"cudpp\" in it twice, for example,\nthe way I keep branches:\n\n~/src/idav/branches/proj/cudpp/release1.1/cudpp/\n\ncudpp_testrig -rand fails to find its files.  This is because cutupPath\ngoes from the root of the path above, finding the first /cudpp first.  It\nshould instead work backwards up the tree, so it finds the closest instance\nof \"startDir\", rather than the farthest -- I think this is what users will\nexpect.\n\nI think the correct way to do this is not using strtok, but by using the\nchdir() to traverse up the tree until either the startDir is found or the\nroot is hit.  I find it hard to believe each OS doesn't have a built-in\nfunction to do this, but a quick google search turns up nothing easy...\n\nThis needs to be fixed.  However I think we can leave it until after the\nrelease.\n```\n\nOriginal issue reported on code.google.com by `harr...@gmail.com` on 29 Jun 2009 at 7:42"},"comment":{"url":"https://api.github.com/repos/byzhang/cudpp/issues/comments/77071877","html_url":"https://github.com/byzhang/cudpp/issues/25#issuecomment-77071877","issue_url":"https://api.github.com/repos/byzhang/cudpp/issues/25","id":77071877,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:22:32Z","updated_at":"2015-03-04T00:22:32Z","body":"```\nThis is fixed.  Closing.\n```\n\nOriginal comment by `harr...@gmail.com` on 29 Apr 2010 at 7:12\n* Changed state: **Verified**"}}