diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-11 23:47:03 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-11 23:47:03 +0000 |
commit | 01ceb5e2d7b7b4492ed3f2bd1e95fe9b4d68ad47 (patch) | |
tree | e4e677a95af0c94f1c761ea8a028a350c82031bb /source3/web/cgi.c | |
parent | f9584f93be33ee69912708e6402809f47703a5d5 (diff) | |
download | samba-01ceb5e2d7b7b4492ed3f2bd1e95fe9b4d68ad47.tar.gz samba-01ceb5e2d7b7b4492ed3f2bd1e95fe9b4d68ad47.tar.bz2 samba-01ceb5e2d7b7b4492ed3f2bd1e95fe9b4d68ad47.zip |
changed is_root() to am_root() to prevent clash with variable names.
(This used to be commit 52f47b8d2ef5ee64e2f8dcfeb6840071e57904d1)
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r-- | source3/web/cgi.c | 4 |
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 = ""; |