Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2491)

Unified Diff: src/scripts/enter_chroot.sh

Issue 429006: build: Make enter_chroot.sh fail if run as root. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/common.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/enter_chroot.sh
diff --git a/src/scripts/enter_chroot.sh b/src/scripts/enter_chroot.sh
index 101280dee811f72d11f5e9869fa9087d8d56ff12..acfa84682de4b31e586941075c0d8c640fbad4a0 100755
--- a/src/scripts/enter_chroot.sh
+++ b/src/scripts/enter_chroot.sh
@@ -10,8 +10,9 @@
# The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh"
-# Script must be run outside the chroot
+# Script must be run outside the chroot and as a regular user.
assert_outside_chroot
+assert_not_root_user
# Define command line flags
# See http://code.google.com/p/shflags/wiki/Documentation10x
« no previous file with comments | « src/scripts/common.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698