diff options
Diffstat (limited to 'media-gfx/graphviz/files/graphviz-1.16-tempdir.patch')
-rw-r--r-- | media-gfx/graphviz/files/graphviz-1.16-tempdir.patch | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/media-gfx/graphviz/files/graphviz-1.16-tempdir.patch b/media-gfx/graphviz/files/graphviz-1.16-tempdir.patch index 0fe40acf4097..ead93b41c06f 100644 --- a/media-gfx/graphviz/files/graphviz-1.16-tempdir.patch +++ b/media-gfx/graphviz/files/graphviz-1.16-tempdir.patch @@ -5,10 +5,7 @@ return; if (otype == 'printer') { - name = '/tmp/dottyout.ps'; -+ if (~getenv ('TMPDIR')) -+ name = concat (getenv ('HOME'), '/.dottyout.ps'); -+ else -+ name = concat (getenv ('TMPDIR'), '/.dottyout.ps', random (10000)); ++ name = concat (getenv ('HOME'), '/.dottyout.ps'); if (getenv ('LEFTYWINSYS') ~= 'mswin' & ~pr) if (~(pr = ask ('printer command', 'string', 'lpr'))) return; |