File su-wrapper-1.2.0-term.dif of Package su-wrapper
--- src/su-wrapper.c +++ src/su-wrapper.c 2012-12-19 10:44:55.961952136 +0000 @@ -483,7 +483,7 @@ int main (int argc, char * argv[]) xputenv("PATH", "/usr/local/bin:/bin:/usr/bin:/usr/bin/X11"); if (errno) error("putenv() failed: %s\n", strerror(errno)); - if (xputenv("TERM", term)) + if (xputenv("TERM", term ? term : "dumb")) error("putenv() failed: %s\n", strerror(errno)); do_su (entry);