kbuild: Fix build as root then user
authorSam Ravnborg <sam@mars.(none)>
Thu, 14 Jul 2005 20:12:40 +0000 (20:12 +0000)
committerSam Ravnborg <sam@mars.(none)>
Thu, 14 Jul 2005 20:12:40 +0000 (20:12 +0000)
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>
scripts/Makefile.build

index 76ba6be3dfc9cd51888b57ef54c9aea8e8d19e81..282bfb310f5b925c9d51fa7b443a6491c34030f9 100644 (file)
@@ -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