PAR-Packer icon indicating copy to clipboard operation
PAR-Packer copied to clipboard

Forgot to par_unsetenv('PAR_TMPDIR')? [rt.cpan.org #132802]

Open rschupp opened this issue 4 years ago • 0 comments

Migrated from rt.cpan.org#132802 (status was 'new')

Requestors:

From [email protected] on 2020-06-10 20:18:23 :

Hi,

the following code in myldr/utils.c line 239 looks suspicious. Shouldn't PAR_TMPDIR also be unset?

    par_unsetenv("PERLIO");

    par_unsetenv("PAR_INITIALIZED");
    par_unsetenv("PAR_SPAWNED");
    par_unsetenv("PAR_TEMP");
    par_unsetenv("PAR_CLEAN");
    par_unsetenv("PAR_DEBUG");
    par_unsetenv("PAR_CACHE");
    par_unsetenv("PAR_PROGNAME");

    if ( (buf = par_getenv("PAR_GLOBAL_DEBUG")) != NULL ) {
        par_setenv("PAR_DEBUG", buf);
    }

    if ( (buf = par_getenv("PAR_GLOBAL_TMPDIR")) != NULL ) {
        par_setenv("PAR_TMPDIR", buf);
    }

    if ( (buf = par_getenv("PAR_GLOBAL_TEMP")) != NULL ) {
        par_setenv("PAR_TEMP", buf);
    }
    else if ( (buf = par_getenv("PAR_GLOBAL_CLEAN")) != NULL ) {
        par_setenv("PAR_CLEAN", buf);
    }

Mit freundlichen Grüßen				

Ralf


rschupp avatar Jan 13 '21 13:01 rschupp