{"action":"created","issue":{"url":"https://api.github.com/repos/DanBloomberg/leptonica/issues/110","repository_url":"https://api.github.com/repos/DanBloomberg/leptonica","labels_url":"https://api.github.com/repos/DanBloomberg/leptonica/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/DanBloomberg/leptonica/issues/110/comments","events_url":"https://api.github.com/repos/DanBloomberg/leptonica/issues/110/events","html_url":"https://github.com/DanBloomberg/leptonica/issues/110","id":126469645,"number":110,"title":"Activating ADD_LEPTONICA_SUBDIR causes opening files from /tmp to fail","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/DanBloomberg/leptonica/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/DanBloomberg/leptonica/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/DanBloomberg/leptonica/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-13T17:22:07Z","updated_at":"2016-04-15T18:47:21Z","closed_at":"2016-04-15T18:47:21Z","body":"```\nWhat steps will reproduce the problem?\n1. place image int /tmp/image.jpg\n2. tesseract /tmp/image.jpg ocrresult -psm 3\n\nWhat is the expected output? What do you see instead?\nTesseract should run but instead quits with could not open file. strace shows \nthe input path gets modified.\n\n\nWhat version of the product are you using? On what operating system?\ngentoo linux. leptonica-1.72-r1\n\n\nPlease provide any additional information below.\nThis issue is caused by activating ADD_LEPTONICA_SUBDIR. in src/utils.c \ngenPathname() then modifies paths in /tmp. This should not happen for user \ngiven paths.\nI looked into it and did not find a quick solution. This issue relates to many \nfunctions in which it should differentiate between user given paths and ones to \nmodify.\n\n```\n\nOriginal issue reported on code.google.com by `goo...@doofy.speciesm.net` on 29 May 2015 at 12:20"},"comment":{"url":"https://api.github.com/repos/DanBloomberg/leptonica/issues/comments/210593418","html_url":"https://github.com/DanBloomberg/leptonica/issues/110#issuecomment-210593418","issue_url":"https://api.github.com/repos/DanBloomberg/leptonica/issues/110","id":210593418,"user":{"login":"DanBloomberg","id":16688684,"avatar_url":"https://avatars.githubusercontent.com/u/16688684?v=3","gravatar_id":"","url":"https://api.github.com/users/DanBloomberg","html_url":"https://github.com/DanBloomberg","followers_url":"https://api.github.com/users/DanBloomberg/followers","following_url":"https://api.github.com/users/DanBloomberg/following{/other_user}","gists_url":"https://api.github.com/users/DanBloomberg/gists{/gist_id}","starred_url":"https://api.github.com/users/DanBloomberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanBloomberg/subscriptions","organizations_url":"https://api.github.com/users/DanBloomberg/orgs","repos_url":"https://api.github.com/users/DanBloomberg/repos","events_url":"https://api.github.com/users/DanBloomberg/events{/privacy}","received_events_url":"https://api.github.com/users/DanBloomberg/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T18:47:21Z","updated_at":"2016-04-15T18:47:21Z","body":"Issue is moot.  We've removed this option in 1.73.  All temp files should be written to /tmp/lept/ or a subdirectory of /tmp/lept/"}}