History

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.

Sam Ravnborg committed 21 years ago

Commit cfca82f1 parent 2283a111 file · +1 −1Browse files

Unified · Split

scripts/Makefile.build+1−1
@@ -169,7 +169,7 @@ cmd_modversions = \ · 168 unmodified lines
169 -T $(@D)/.tmp_$(@F:.o=.ver); \169 -T $(@D)/.tmp_$(@F:.o=.ver); \
170 rm -f $(@D)/.tmp_$(@F) $(@D)/.tmp_$(@F:.o=.ver); \170 rm -f $(@D)/.tmp_$(@F) $(@D)/.tmp_$(@F:.o=.ver); \
171 else \171 else \
172 mv $(@D)/.tmp_$(@F) $@; \172 mv -f $(@D)/.tmp_$(@F) $@; \
173 fi;173 fi;
174endif174endif
175 175