sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (71fb59842deb16cc42285860c27483c013bbeda9)
- From: Jaka Kranjc <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (71fb59842deb16cc42285860c27483c013bbeda9)
- Date: Sat, 2 Feb 2008 12:37:19 -0600
GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:
ChangeLog | 1 +
usr/sbin/gaze | 10 ++++++++++
2 files changed, 11 insertions(+)
New commits:
commit 71fb59842deb16cc42285860c27483c013bbeda9
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
gaze: import and export need root privileges #13789
diff --git a/ChangeLog b/ChangeLog
index ce4f74c..4904dbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2008-02-02 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libgpg, libunpack: added multisign support #13815
* gaze, libstate, libgrimoire: discard awk warnings
+ * gaze: import and export need root privileges #13789
2008-02-01 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcodex: bail out of codex_check_cache if the grimoire dir is not
diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index 8d59ccd..992e659 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -136,6 +136,11 @@ function maybe_column() {
#-----
function export_snapshot() {
+ if [[ $UID != 0 ]]; then
+ error_message "${PROBLEM_COLOR}gaze export needs to be run as root,
aborting...$DEFAULT_COLOR"
+ exit 1
+ fi
+
SOURCE_DIRECTORY=$BUILD_DIRECTORY/snapshot
mk_source_dir $SOURCE_DIRECTORY
cp -a /etc $SOURCE_DIRECTORY
@@ -171,6 +176,11 @@ function export_snapshot() {
#-----
function import_snapshot() {
+ if [[ $UID != 0 ]]; then
+ error_message "${PROBLEM_COLOR}gaze import needs to be run as root,
aborting...$DEFAULT_COLOR"
+ exit 1
+ fi
+
SNAPSHOT=$1
SOURCE_DIRECTORY=$BUILD_DIRECTORY/snapshot
- [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (71fb59842deb16cc42285860c27483c013bbeda9), Jaka Kranjc, 02/02/2008
Archive powered by MHonArc 2.6.24.