sh: Remove tmpdir and script globals from call.c and call.h.
commit91260bef7589036083c279edf72afea35d6959b4
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 1 Dec 2019 13:40:43 +0000 (1 13:40 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 1 Dec 2019 13:52:17 +0000 (1 13:52 +0000)
treef34c7fad4e24c5b324338d52ec2dca3d22dad1f7
parent427e271e8392ecb696855f5a7d8ff3b2dce2637b
sh: Remove tmpdir and script globals from call.c and call.h.

tmpdir was not used at all.  The script global was used only for
printing error messages, but call.c can get this (and more easily and
more reliably too) just by looking at argv[0] from the array of
arguments it is passed.

This is neutral refactoring but helps to decouple sh.c from call.c.
plugins/sh/call.c
plugins/sh/call.h
plugins/sh/sh.c