From:	HENRY::IN%"PENSTONE%QUCDNEE1.BITNET%WISCVM.WISC.EDU%relay.cs.net@rca.com"  9-JAN-1987 20:51
To:	everhart%arisia%rca.com@csnet-relay.csnet
Subj:	Tar Reader Bug

        There is a bug in the function make_new() in the tar-to-vms
conversion program that will cause it to bomb if the file on the
tar tape is at the top level (i.e. no directory path). The string 'name'
in the function will have garbage in it.
        The fix is thanks to Ursula Meyer (natrup@vax.hmi.dfn) in Germany,
and consists of moving a  } bracket from its present position to another:
        The code reads:

         if (end != NULL)
            {
                ...
                ...
                ...
                strcat(name,a);
            }                                                   /* !!!! */

         if (access(name,0) < 0)        /* Does the directory exist ? */
            {
                ...
                ...
                ...
            return (0);
            }                                                   /* !!!! */
        return(0);
}

To fix it:
        Move the right brace } following the line "strcat(name,a);"
        to below the right brace } above the second "return(0)" line.
        The lines are indicated by the /* !!!! */ comments above.
        This forces an exit,if there is no '.' in the pathname,
        and writes the file in the current default directory.
        The source can be cleaned up by indenting the code correctly.

        Sid Penstone.
        PENSTONE@QUCDNEE1.BITNET

