Skip to content

Commit

Permalink
kbuild: Fix build as root then user
Browse files Browse the repository at this point in the history
From: Matthew Wilcox <[email protected]>
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Sam Ravnborg committed Jul 14, 2005
1 parent 2283a11 commit cfca82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cfca82f

Please sign in to comment.