Wiki revs now work again - replaced --global-reject-file with -r
authorArt Cancro <ajc@citadel.org>
Tue, 11 Jan 2011 03:57:49 +0000 (22:57 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 11 Jan 2011 03:57:49 +0000 (22:57 -0500)
citadel/modules/wiki/serv_wiki.c

index 12b9b9fa0242f6c938d7cc0970239b8952a71103..68d8650ce7311f4b60f25ff487dc8d47aef07407 100644 (file)
@@ -422,8 +422,7 @@ void wiki_rev_callback(char *name, char *filename, char *partnum, char *disp,
        CtdlLogPrintf(CTDL_DEBUG, "callback found rev: %s\n", this_rev);
 
        /* Perform the patch */
-       //fp = popen("patch -f -s -p0 --global-reject-file=/dev/null >/dev/null 2>/dev/null", "w");
-       fp = popen("patch -f -s -p0 --global-reject-file=/dev/null >/dev/null 2>>/tmp/patcherr.txt", "w");
+       fp = popen("patch -f -s -p0 -r /dev/null >/dev/null 2>/dev/null", "w");
        if (fp) {
                /* Replace the filenames in the patch with the tempfilename we're actually tweaking */
                fprintf(fp, "--- %s\n", hecbd->tempfilename);