summaryrefslogtreecommitdiff
path: root/source3/web/cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r--source3/web/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 41d099bac9..5415abf6b3 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -321,7 +321,7 @@ static int cgi_handle_authorization(char *line)
/***************************************************************************
is this root?
***************************************************************************/
-BOOL is_root(void)
+BOOL am_root(void)
{
if ((C_user) && (strcmp(C_user,"root") == 0)) {
return( True);
@@ -411,7 +411,7 @@ void cgi_setup(char *rootdir, int auth_required)
char *x;
/* Save the users name if available */
- if ((x = getenv("REMOTE_USER"))!=NULL) {
+ if ((x = getenv("REMOTE_USER"))) {
C_user = strdup(x);
} else {
C_user = "";