projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36fe48d
)
need not root perm for help subcmd
author
JF Ding
<jian-feng.ding@intel.com>
Mon, 2 Jan 2012 09:16:11 +0000
(17:16 +0800)
committer
JF Ding
<jian-feng.ding@intel.com>
Mon, 2 Jan 2012 09:16:11 +0000
(17:16 +0800)
reported by Marko, thanks
mic/creator.py
patch
|
blob
|
history
diff --git
a/mic/creator.py
b/mic/creator.py
index 9cfcb7d90687105a20de0f0d192026bcf8213425..114b03d93876df31ed2f55bae4bf36a48f8adac3 100644
(file)
--- a/
mic/creator.py
+++ b/
mic/creator.py
@@
-219,8
+219,8
@@
class Creator(cmdln.Cmdln):
self.postoptparse()
- if os.geteuid() != 0:
- msger.error('
R
oot permission is required to continue, abort')
+ if os.geteuid() != 0
and args[0] != 'help'
:
+ msger.error('
r
oot permission is required to continue, abort')
return self.cmd(args)