about summary refs log tree commit diff stats
path: root/src/LYUpload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYUpload.c')
-rw-r--r--src/LYUpload.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/LYUpload.c b/src/LYUpload.c
index 2259d55f..dba75c56 100644
--- a/src/LYUpload.c
+++ b/src/LYUpload.c
@@ -198,9 +198,9 @@ retry:
     system(cmd);
     fflush(stdout);
     start_curses();
-#ifndef __DJGPP__ 
-    chmod(buffer, 0600);
-#endif /* __DJGPP__ */ 
+#ifdef UNIX 
+    chmod(buffer, HIDE_CHMOD);
+#endif /* UNIX */ 
     /* don't remove(file); */
 
     return 1;
@@ -250,13 +250,10 @@ PUBLIC int LYUpload_options ARGS2(
      *  protection in case this wasn't done via an
      *  external umask. - FM
      */
-    if ((fp0 = fopen(tempfile, "w")) == NULL) {
+    if ((fp0 = LYNewTxtFile(tempfile)) == NULL) {
 	HTAlert(CANNOT_OPEN_TEMP);
 	return(-1);
     }
-#ifndef __DJGPP__ 
-    chmod(tempfile, 0600);
-#endif /* __DJGPP__ */ 
 
 #ifdef VMS
     strcpy(curloc, "/sys$login");