$NetBSD: patch-su,v 1.1.1.1 2011/01/23 14:31:56 wiz Exp $ Old bash versions required octal characters with 3 digits, newer versions (>= 2.05) require 4 digits. --- src/subshell.c.orig 2007-08-14 14:25:55.000000000 +0200 +++ src/subshell.c 2007-08-14 14:37:39.000000000 +0200 @@ -728,8 +728,8 @@ subshell_name_quote (const char *s) if (isalpha ((unsigned char) *s)) { *d++ = (unsigned char) *s; } else { - sprintf (d, "\\%03o", (unsigned char) *s); - d += 4; + sprintf (d, "\\%04o", (unsigned char) *s); + d += 5; } } } else {