Apply by doing: cd /usr/src patch -p0 < 025_sudo.patch And then rebuild and install sudo: cd usr.bin/sudo make -f Makefile.bsd-wrapper obj make -f Makefile.bsd-wrapper cleandir make -f Makefile.bsd-wrapper make -f Makefile.bsd-wrapper install Index: usr.bin/sudo/check.c =================================================================== RCS file: /cvs/src/usr.bin/sudo/check.c,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -u -r1.5.2.1 -r1.5.2.2 --- usr.bin/sudo/check.c 18 Jan 2002 17:20:22 -0000 1.5.2.1 +++ usr.bin/sudo/check.c 25 Apr 2002 19:20:06 -0000 1.5.2.2 @@ -196,9 +196,9 @@ if (subst) { new_prompt = (char *) emalloc(len + 1); - for (p = old_prompt, np = new_prompt; *p; p++) { + for (p = old_prompt, np = new_prompt, lastchar = '\0'; *p; p++) { if (lastchar == '%' && (*p == 'h' || *p == 'u' || *p == '%')) { - /* substiture user/host name */ + /* substitute user/host name */ if (*p == 'h') { np--; strcpy(np, user_shost);