Pasky,

Looks like a couple of questions I asked over the weekend
got lost along the way.

 1) How do you want me to fix the indentation on my patch
    to optimize gitdiff-do script:
        - forget my first patch and resend from scratch, or
        - a second patch restoring indentation, on top of my first one.

 2) Would you be interested in a patch that used a more robust tmp
    file creation, along the lines of replacing

            t=${TMPDIR:-/usr/tmp}/gitdiff.$$
            trap 'set +f; rm -fr $t.?; trap 0; exit 0' 0 1 2 3 15

    with:

            tmp=${TMPDIR-/tmp}
            tmp=$tmp/gitdiff-do.$RANDOM.$RANDOM.$RANDOM.$$
            (umask 077 && mkdir $tmp) || {
                    echo "Could not create temporary directory! Exiting." 1>&2 
                    exit 1
            }
            trap 'rm -fr $tmp; trap 0; exit 0' 0 1 2 3 15
            t=$tmp/tmp

    From the www.linuxsecurity.com link that Dave Jones provided, the
    above $tmp directory is about as good as using mktemp, while
    avoiding both dependency on mktemp options not everyone has.

 3) If interested in (2), would you want it instead of my previous mktemp
    removal patch, or on top of it?

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <[EMAIL PROTECTED]> 1.650.933.1373, 
1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to