uname(&my_utsname);
/* set some sample/default values in place of blanks... */
- char c_nodename[256];
- safestrncpy(c_nodename, my_utsname.nodename, sizeof c_nodename);
- strtok(config.c_nodename, ".");
+ extract_token(config.c_nodename, my_utsname.nodename, 0, '.', sizeof config.c_nodename);
if (IsEmptyStr(config.c_fqdn) ) {
if ((he = gethostbyname(my_utsname.nodename)) != NULL) {
safestrncpy(config.c_fqdn, he->h_name, sizeof config.c_fqdn);
*
* Copyright (c) 1987-2012 by the citadel.org team
*
- * This program is open source software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3.
- *
- *
+ * This program is open source software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- *
- *
- *
*/
#include "sysdep.h"
/* So that we don't keep the context list locked for a long time
* we create a copy of it first
*/
-
-
nptr = CtdlGetContextArray(&nContexts) ;
if (!nptr)
{
return;
}
- aide = (CC->user.axlevel >= AxAideU) ;
+ aide = ( (CC->user.axlevel >= AxAideU) || (CC->internal_pgm) ) ;
cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress() );
for (i=0; i<nContexts; i++)