Branch: Tag:

2002-10-07

2002-10-07 12:28:26 by Fredrik Noring <noring@nocrew.org>

Fixes [bug 3263 (#3263)] where uname -p suddenly returns "i686" instead of previously "unknown" which was converted to "i386".

Rev: server/etc/env.d/java.pike:1.13

66:    }    write(" JREHOME="+jrehome+"\n");    env->set("JREHOME", jrehome); -  arch = (Process.popen("(/usr/bin/uname -p||uname -p) 2>/dev/null")||"")-"\n"; +  arch = (Process.popen("(/usr/bin/uname -p||uname -p) 2>/dev/null | sed -e 's/^i[4-9]86/i386/'")||"")-"\n";    if(arch=="unknown")    arch = (Process.popen("uname -m | sed -e 's/^i[4-9]86/i386/'")||"")-"\n";    if(arch == "")