diff options
-rw-r--r-- | WWW/Library/Implementation/HTAnchor.c | 1 | ||||
-rw-r--r-- | src/HTFWriter.c | 6 | ||||
-rw-r--r-- | src/LYBookmark.c | 2 | ||||
-rw-r--r-- | src/LYDownload.c | 2 | ||||
-rw-r--r-- | src/LYForms.c | 2 | ||||
-rw-r--r-- | src/LYHistory.c | 4 | ||||
-rw-r--r-- | src/LYLeaks.c | 2 | ||||
-rw-r--r-- | src/LYList.c | 2 | ||||
-rw-r--r-- | src/LYLocal.c | 8 | ||||
-rw-r--r-- | src/LYMail.c | 8 | ||||
-rw-r--r-- | src/LYMain.c | 2 | ||||
-rw-r--r-- | src/LYMainLoop.c | 6 | ||||
-rw-r--r-- | src/LYNews.c | 4 | ||||
-rw-r--r-- | src/LYOptions.c | 2 | ||||
-rw-r--r-- | src/LYShowInfo.c | 2 | ||||
-rw-r--r-- | src/LYTraversal.c | 10 | ||||
-rw-r--r-- | src/LYUpload.c | 4 | ||||
-rw-r--r-- | src/LYrcFile.c | 2 |
18 files changed, 66 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTAnchor.c b/WWW/Library/Implementation/HTAnchor.c index 397c3684..8c91f3fb 100644 --- a/WWW/Library/Implementation/HTAnchor.c +++ b/WWW/Library/Implementation/HTAnchor.c @@ -21,6 +21,7 @@ #include "HTAnchor.h" #include "HTParse.h" #ifdef EXP_CHARTRANS +#include "UCAux.h" #include "UCMap.h" #endif /* EXP_CHARTRANS */ diff --git a/src/HTFWriter.c b/src/HTFWriter.c index ccd85a00..eab03eb3 100644 --- a/src/HTFWriter.c +++ b/src/HTFWriter.c @@ -585,7 +585,9 @@ SaveAndExecute_tempname: FREE(me); return NULL; } +#ifndef __DJGPP__ chmod(fnam, 0600); +#endif /* __DJGPP__ */ StrAllocCopy(me->viewer_command, pres->command); /* @@ -785,7 +787,9 @@ SaveToFile_tempname: FREE(ret_obj); return NULL; } +#ifndef __DJGPP__ chmod(fnam, 0600); +#endif /* __DJGPP__ */ /* * Any "application/foo" or other non-"text/foo" types that @@ -1048,7 +1052,9 @@ Compressed_tempname: FREE(me); return NULL; } +#ifndef __DJGPP__ chmod(fnam, 0600); +#endif /* __DJGPP__ */ /* * me->viewer_command will be NULL if the converter Pres found above diff --git a/src/LYBookmark.c b/src/LYBookmark.c index 9018e483..d6891e9c 100644 --- a/src/LYBookmark.c +++ b/src/LYBookmark.c @@ -477,7 +477,9 @@ PUBLIC void remove_bookmark_link ARGS2( mode = ((stat_buf.st_mode & 0777) | 0600); (void) fclose(nfp); nfp = NULL; +#ifndef __DJGPP__ (void) chmod(newfile, mode); +#endif /* __DJGPP__ */ if ((nfp = fopen(newfile, "a")) == NULL) { (void) fclose(fp); _statusline(BOOKTEMP_REOPEN_FAIL_FOR_DEL); diff --git a/src/LYDownload.c b/src/LYDownload.c index 82002a9a..14bfa21f 100644 --- a/src/LYDownload.c +++ b/src/LYDownload.c @@ -385,7 +385,9 @@ check_recall: fflush(stderr); start_curses(); #endif /* VMS */ +#ifndef __DJGPP__ chmod(buffer, 0600); +#endif /* __DJGPP__ */ } else { /* diff --git a/src/LYForms.c b/src/LYForms.c index e48a6ca8..85eb44d8 100644 --- a/src/LYForms.c +++ b/src/LYForms.c @@ -682,7 +682,7 @@ PRIVATE int popup_options ARGS7( #endif LYsubwindow(form_window); #endif -#if defined(COLOR_CURSES) /* not defined in ncurses 1.8.7 */ +#if defined(COLOR_CURSES) && defined(getbkgd) /* not defined in ncurses 1.8.7 */ wbkgd(form_window, getbkgd(stdscr)); wbkgdset(form_window, getbkgd(stdscr)); #endif diff --git a/src/LYHistory.c b/src/LYHistory.c index 9f815d2f..5a63061e 100644 --- a/src/LYHistory.c +++ b/src/LYHistory.c @@ -425,7 +425,9 @@ PUBLIC int showhistory ARGS1( HTAlert(CANNOT_OPEN_TEMP); return(-1); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ StrAllocCopy(*newfile, hist_filename); LYforce_HTML_mode = TRUE; /* force this file to be HTML */ @@ -587,7 +589,9 @@ PUBLIC int LYShowVisitedLinks ARGS1( HTAlert(CANNOT_OPEN_TEMP); return(-1); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ StrAllocCopy(*newfile, vl_filename); LYforce_HTML_mode = TRUE; /* force this file to be HTML */ diff --git a/src/LYLeaks.c b/src/LYLeaks.c index 58edfb32..3b158182 100644 --- a/src/LYLeaks.c +++ b/src/LYLeaks.c @@ -55,7 +55,9 @@ PUBLIC void LYLeaks NOARGS { if(Fp_leakagesink == NULL) { return; } +#ifndef __DJGPP__ chmod(LEAKAGE_SINK, 0600); +#endif /* __DJGPP__ */ while(ALp_RunTimeAllocations != NULL) { /* diff --git a/src/LYList.c b/src/LYList.c index 4d32c649..c62600ba 100644 --- a/src/LYList.c +++ b/src/LYList.c @@ -89,7 +89,9 @@ PUBLIC int showlist ARGS2( sleep(MessageSecs); return(-1); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ StrAllocCopy(*newfile, list_filename); LYforce_HTML_mode = TRUE; /* force this file to be HTML */ diff --git a/src/LYLocal.c b/src/LYLocal.c index df518553..9fcfe2e9 100644 --- a/src/LYLocal.c +++ b/src/LYLocal.c @@ -1147,7 +1147,9 @@ PRIVATE BOOLEAN permit_location ARGS3( sleep(AlertSecs); return(0); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ if (first) { /* @@ -1348,7 +1350,8 @@ form to permit %s %s.\n</Ol>\n</Form>\n", cp = cr; } - + +#ifndef __DJGPP__ /* * Call chmod(). */ @@ -1361,6 +1364,7 @@ form to permit %s %s.\n</Ol>\n</Form>\n", if (LYExecv(CHMOD_PATH, args, tmpbuf) <= 0) { return (-1); } +#endif /* __DJGPP__ */ LYforce_no_cache = TRUE; /* Force update of dired listing. */ return 1; } @@ -1703,7 +1707,9 @@ PUBLIC int dired_options ARGS2( sleep(AlertSecs); return(0); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ if (first) { /* diff --git a/src/LYMail.c b/src/LYMail.c index 849bb5d7..ad339f17 100644 --- a/src/LYMail.c +++ b/src/LYMail.c @@ -194,7 +194,9 @@ PUBLIC void mailform ARGS4( FREE(address); return; } +#ifndef __DJGPP__ chmod(tmpfile, 0600); +#endif /* __DJGPP__ */ if (*self) { cp = self; while (*cp == ' ' || *cp == ',') @@ -389,7 +391,9 @@ PUBLIC void mailmsg ARGS4(int,cur, char *,owner_address, FREE(address); return; } +#ifndef __DJGPP__ chmod(tmpfile, 0600); +#endif /* __DJGPP__ */ #endif /* VMS */ fprintf(fd, "The link %s :?: %s \n", @@ -462,7 +466,9 @@ PUBLIC void mailmsg ARGS4(int,cur, char *,owner_address, #endif /* SIGTSTP */ exit(-1); } +#ifndef __DJGPP__ chmod(TRAVERSE_ERRORS, 0600); +#endif /* __DJGPP__ */ } fprintf(ofp, "%s\t%s \tin %s\n", @@ -529,7 +535,9 @@ PUBLIC void reply_by_mail ARGS3( HTAlert(MAILTO_URL_TEMPOPEN_FAILED); return; } +#ifndef __DJGPP__ chmod(my_tempfile, 0600); +#endif /* __DJGPP__ */ subject[0] = '\0'; /* diff --git a/src/LYMain.c b/src/LYMain.c index 8b1c838a..943348ab 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -1014,7 +1014,9 @@ PUBLIC int main ARGS2( exit(-1); } #endif /* VMS */ +#ifndef __DJGPP__ chmod(LYTraceLogPath, 0600); +#endif /* __DJGPP__ */ *stderr = *LYTraceLogFP; fprintf(stderr, "\t\t%s\n\n", LYNX_TRACELOG_TITLE); } diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c index 40b113e3..5a7b3fe4 100644 --- a/src/LYMainLoop.c +++ b/src/LYMainLoop.c @@ -523,7 +523,9 @@ try_again: #endif /* SIGTSTP */ exit(-1); } +#ifndef __DJGPP__ chmod(TRAVERSE_ERRORS, 0600); +#endif /* __DJGPP__ */ } fprintf(ofp, "%s %s\tin %s\n", links[curdoc.link].lname, @@ -1337,7 +1339,9 @@ try_again: sprintf(cfile,"lnk%08d.dat",ccount); ccount = ccount + 1; if ((cfp = fopen(cfile,"w")) != NULL) { +#ifndef __DJGPP__ chmod(cfile, 0600); +#endif /* __DJGPP__ */ print_crawl_to_fd(cfp,curdoc.address,curdoc.title); fclose(cfp); } else { @@ -4552,7 +4556,9 @@ check_add_bookmark_to_self: break; } #endif /* VMS */ +#ifndef __DJGPP__ chmod(LYTraceLogPath, 0600); +#endif /* __DJGPP__ */ *stderr = *LYTraceLogFP; fprintf(stderr, "\t\t%s\n\n", LYNX_TRACELOG_TITLE); } diff --git a/src/LYNews.c b/src/LYNews.c index e3c9167b..bb752de0 100644 --- a/src/LYNews.c +++ b/src/LYNews.c @@ -73,7 +73,9 @@ PUBLIC char *LYNewsPost ARGS2( HTAlert(CANNOT_OPEN_TEMP); return(postfile); } +#ifndef __DJGPP__ chmod(my_tempfile, 0600); +#endif /* __DJGPP__ */ /* * If we're using a Japanese display character set, @@ -94,7 +96,9 @@ PUBLIC char *LYNewsPost ARGS2( #endif /* VMS */ return(postfile); } +#ifndef __DJGPP__ chmod(CJKfile, 0600); +#endif /* __DJGPP__ */ } /* diff --git a/src/LYOptions.c b/src/LYOptions.c index c4ef236c..5ed6f5d7 100644 --- a/src/LYOptions.c +++ b/src/LYOptions.c @@ -2142,7 +2142,7 @@ PRIVATE int popup_choice ARGS6( #endif LYsubwindow(form_window); #endif -#if defined(COLOR_CURSES) /* not defined in ncurses 1.8.7 */ +#if defined(COLOR_CURSES) && defined(getbkgd) /* not defined in ncurses 1.8.7 */ wbkgd(form_window, getbkgd(stdscr)); wbkgdset(form_window, getbkgd(stdscr)); #endif diff --git a/src/LYShowInfo.c b/src/LYShowInfo.c index 2cd1b05b..2d167ee9 100644 --- a/src/LYShowInfo.c +++ b/src/LYShowInfo.c @@ -70,7 +70,9 @@ PUBLIC int showinfo ARGS4( HTAlert(CANNOT_OPEN_TEMP); return(0); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ /* * Point the address pointer at this Url diff --git a/src/LYTraversal.c b/src/LYTraversal.c index 968d6e74..500475d3 100644 --- a/src/LYTraversal.c +++ b/src/LYTraversal.c @@ -32,7 +32,9 @@ PUBLIC BOOLEAN lookup ARGS1(char *,target) exit(-1); } else { fclose(ifp); +#ifndef __DJGPP__ chmod(TRAVERSE_FILE, 0600); +#endif /* __DJGPP__ */ return(FALSE); } } @@ -70,7 +72,9 @@ PUBLIC void add_to_table ARGS1(char *,target) #endif /* SIGTSTP */ exit(-1); } +#ifndef __DJGPP__ chmod(TRAVERSE_FILE, 0600); +#endif /* __DJGPP__ */ fprintf(ifp,"%s\n",target); @@ -97,7 +101,9 @@ PUBLIC void add_to_traverse_list ARGS2(char *,fname, char *,prev_link_name) #endif /* SIGTSTP */ exit(-1); } +#ifndef __DJGPP__ chmod(TRAVERSE_FOUND_FILE, 0600); +#endif /* __DJGPP__ */ fprintf(ifp,"%s\t%s\n",fname, prev_link_name); @@ -116,7 +122,9 @@ PUBLIC void dump_traversal_history NOARGS perror("unable to open traversal file"); return; } +#ifndef __DJGPP__ chmod(TRAVERSE_FILE, 0600); +#endif /* __DJGPP__ */ fprintf(ifp, "\n\nTRAVERSAL WAS INTERUPTED\n\n\ \t here is a list of the history stack so that you may rebuild\n\n"); @@ -148,7 +156,9 @@ PUBLIC void add_to_reject_list ARGS1(char *,target) #endif /* SIGTSTP */ exit(-1); } +#ifndef __DJGPP__ chmod(TRAVERSE_REJECT_FILE, 0600); +#endif /* __DJGPP__ */ fprintf(ifp,"%s\n",target); diff --git a/src/LYUpload.c b/src/LYUpload.c index 1623a414..2259d55f 100644 --- a/src/LYUpload.c +++ b/src/LYUpload.c @@ -198,7 +198,9 @@ retry: system(cmd); fflush(stdout); start_curses(); +#ifndef __DJGPP__ chmod(buffer, 0600); +#endif /* __DJGPP__ */ /* don't remove(file); */ return 1; @@ -252,7 +254,9 @@ PUBLIC int LYUpload_options ARGS2( HTAlert(CANNOT_OPEN_TEMP); return(-1); } +#ifndef __DJGPP__ chmod(tempfile, 0600); +#endif /* __DJGPP__ */ #ifdef VMS strcpy(curloc, "/sys$login"); diff --git a/src/LYrcFile.c b/src/LYrcFile.c index 147cf7c6..e4a2b38b 100644 --- a/src/LYrcFile.c +++ b/src/LYrcFile.c @@ -532,7 +532,9 @@ PUBLIC int save_rc NOPARAMS if ((fp = fopen(rcfile, "w")) == NULL) { return FALSE; } +#ifndef __DJGPP__ chmod(rcfile, 0600); +#endif /* __DJGPP__ */ /* * Header. |