Ignore:
Timestamp:
Aug 29, 2002, 11:28:45 AM (18 years ago)
Author:
landonf (Landon Fuller)
Message:

Properly escape filenames in calls to system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portpatch.tcl

    r357 r381  
    6464        switch -glob -- [file tail $patch] {
    6565            *.Z -
    66             *.gz {system "gzcat $patch | patch -p0"}
    67             *.bz2 {system "bzcat $patch | patch -p0"}
    68             default {system "patch -p0 < $patch"}
     66            *.gz {system "gzcat \"$patch\" | patch -p0"}
     67            *.bz2 {system "bzcat \"$patch\" | patch -p0"}
     68            default {system "patch -p0 < \"$patch\""}
    6969        }
    7070    }
Note: See TracChangeset for help on using the changeset viewer.