Skip to content
This repository
Browse code

Fix handling of backlash character in LINUX_COMPILE_BY name

When using a domain login, `whoami` returns the login in
user\domain format. This leads to either warnings on unrecognised
escape sequences or escaped characters being generated for the user.
This patch ensures that any backslash is escaped to a double-backslash
to make sure the name is preserved correctly. This patch does not
enforce escaping on the KBUILD_BUILD_USER variable, as this is something
the user has control of and can escape if required.

Signed-off-by: Marcin Nowakowski <>
Signed-off-by: Michal Marek <>
  • Loading branch information...
commit f07726048d599acd6bac438e304645a78db753c0 1 parent d8ecc5c
authored April 25, 2011 michal42 committed April 29, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  scripts/mkcompile_h
2  scripts/mkcompile_h
@@ -43,7 +43,7 @@ else
43 43
44 44
45 45
 if test -z "$KBUILD_BUILD_USER"; then
+	LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')
47 47
48 48
49 49

0 notes on commit f077260

Please sign in to comment.
Something went wrong with that request. Please try again.