summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.(none)>2005-07-14 20:12:40 +0000
committerSam Ravnborg <sam@mars.(none)>2005-07-14 20:12:40 +0000
commitcfca82f2179dd1aee84a5bf3b14710e4d7487aed (patch)
treed1ddaecfd623320c8a18ce6a0bc965f41e9a1e4b /scripts
parent2283a117f65650352f2a9fd6b9af4cdbf5478d14 (diff)
downloadlwn-cfca82f2179dd1aee84a5bf3b14710e4d7487aed.tar.gz
lwn-cfca82f2179dd1aee84a5bf3b14710e4d7487aed.zip
kbuild: Fix build as root then user
From: Matthew Wilcox <matthew@wil.cx> 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 <matthew@wil.cx> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build2
1 files changed, 1 insertions, 1 deletions
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