Follow-up Comment #5, bug #68793 (group groff):

At 2026-10-18T13:47:18-0400, Deri James wrote:
> Update of bug #68793 (group groff):
>
> Status:               Need Info => Fixed
>
> _______________________________________________________
>
> Follow-up Comment #4:

> my $TMPDIR=exists($ENV{TMPDIR})?$ENV{TMPDIR}:'.';


>
> This is perl's ternary operator - test ? value if true : value if
> false. So $TMPDIR is set to $ENV{TMPDIR} if it exists else '.'.

Ah, completely read over that.  I tend to put spaces around dyadic
operators in any language.  :)

> $TMPDIR=$ENV{GROFF_TMPDIR} if exists($ENV{GROFF_TMPDIR});
>
> Overwrite with $ENV{GROFF_TMPDIR} if that exists.

Right.

> So, it could write to root if the environment has neither TMPDIR set
> and you 'cd /' before running pdfmom, but  if you don't have write
> access to root you will get a helpful error message from File::Temp.

Sounds reasonable.  Thanks for walking me through it!



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68793>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to