Renderers cleanup part 1
[citadel.git] / webcit / sysdep.c
index 94314a25cfdefff982f76f9fee59710c1e713674..1278b56259ea984b8bf3a6c4b5437bfe1544208f 100644 (file)
@@ -71,7 +71,6 @@ char file_crpt_file_cer[PATH_MAX]="";
 char file_etc_mimelist[PATH_MAX]="";
 
 const char editor_absolut_dir[PATH_MAX]=EDITORDIR;     /* nailed to what configure gives us. */
-const char markdown_editor_absolutedir[]=MARKDOWNEDITORDIR;
 
 char etc_dir[PATH_MAX];
 char static_dir[PATH_MAX];             /* calculated on startup */
@@ -81,8 +80,7 @@ char  *static_dirs[]={                                /* needs same sort order as the web mapping */
        (char*)static_dir,                      /* our templates on disk */
        (char*)static_local_dir,                /* user provided templates disk */
        (char*)editor_absolut_dir,              /* the editor on disk */
-       (char*)static_icon_dir,                  /* our icons... */
-       (char*)markdown_editor_absolutedir
+       (char*)static_icon_dir                  /* our icons... */
 };
 
 int ExitPipe[2];
@@ -557,6 +555,9 @@ webcit_calc_dirs_n_files(int relh, const char *basedir, int home, char *webcitdi
 void drop_root(uid_t UID)
 {
        struct passwd pw, *pwp = NULL;
+#ifdef HAVE_GETPWUID_R
+       char pwbuf[SIZ];
+#endif
 
        /*
         * Now that we've bound the sockets, change to the Citadel user id and its