From: Sam Ravnborg Date: Thu, 14 Jul 2005 20:12:40 +0000 (+0000) Subject: kbuild: Fix build as root then user X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfca82f2179dd1aee84a5bf3b14710e4d7487aed;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git kbuild: Fix build as root then user From: Matthew Wilcox I inadvertently built a tree as root and then rebuilt it as a user. I got a lot of prompts ... mv: overwrite `drivers/char/drm/drm_auth.o', overriding mode 0644? Using mv -f fixes that. Signed-off-by: Matthew Wilcox Signed-off-by: Sam Ravnborg --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 76ba6be3dfc9..282bfb310f5b 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -169,7 +169,7 @@ cmd_modversions = \ -T $(@D)/.tmp_$(@F:.o=.ver); \ rm -f $(@D)/.tmp_$(@F) $(@D)/.tmp_$(@F:.o=.ver); \ else \ - mv $(@D)/.tmp_$(@F) $@; \ + mv -f $(@D)/.tmp_$(@F) $@; \ fi; endif