Opened 5 years ago

Last modified 5 years ago

#33 new defect

CUPS wizard cannot import PPD when %TMP% ends with \

Reported by: Lewis Rosenthal Owned by:
Priority: major Milestone:
Component: wizzard Version:
Severity: highest Keywords:
Cc:

Description

Apparently, CUPSWIZ doesn't like %TMP% pointing to the root of a volume (e.g., RAM disk) or otherwise contains a trailing slash. When %TMP% is X:\, we get:

line 81 of importPPD in cupwiz.VRM
+++		ok=VrMKDir (???dir)

I think we need to escape the trailing slash, e.g.:

    workdir = SysTempFileName( globals.!tmpdir'\PPD_????')
    ok = VrMkDir( workdir )
    IF ok == 1 THEN ok = VrMkDir( workdir'\OUT')

Setting %TMP% to, say, X: works as expected.

Change History (1)

comment:1 by Alex Taylor, 5 years ago

Fixed in SVN r86 (will be CUPSWIZ v1.19).

Note: See TracTickets for help on using tickets.