aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-07 10:19:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-07 10:19:20 +0000
commit63bc62de3abacaabab7b12fa7dc82c7c9ded94d8 (patch)
tree99e659d047be8ca4cd4a6e4ab858e6e805b04ae4
parent5747aa52485a0665c28bcf8c744d0b87162c0bbd (diff)
downloadmonitor-edid-63bc62de3abacaabab7b12fa7dc82c7c9ded94d8.tar
monitor-edid-63bc62de3abacaabab7b12fa7dc82c7c9ded94d8.tar.gz
monitor-edid-63bc62de3abacaabab7b12fa7dc82c7c9ded94d8.tar.bz2
monitor-edid-63bc62de3abacaabab7b12fa7dc82c7c9ded94d8.tar.xz
monitor-edid-63bc62de3abacaabab7b12fa7dc82c7c9ded94d8.zip
don't warn "you must be root to run this program" if we *are* root
-rw-r--r--vbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbe.c b/vbe.c
index 65d387f..47d0170 100644
--- a/vbe.c
+++ b/vbe.c
@@ -166,7 +166,7 @@ int get_edid(char *edid)
vbe_get_edid_info(edid);
FreeInt10();
- } else
+ } else if (getuid() != 0)
fprintf(stderr, "you must be root to run this program\n");
return ok ? 128 : 0;