about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--CHANGES6
-rw-r--r--src/LYBookmark.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 52aa768b..62d0b4b2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,9 +1,11 @@
--- $LynxId: CHANGES,v 1.461 2009/11/27 15:27:35 tom Exp $
+-- $LynxId: CHANGES,v 1.462 2010/01/13 09:23:19 tom Exp $
 ===============================================================================
 Changes since Lynx 2.8 release
 ===============================================================================
 
-2009-12-?? (2.8.8dev.3)
+2010-01-?? (2.8.8dev.3)
+* when renaming/copying a bookmark file, e.g., to delete a bookmark, modify
+  its permissions for compatibility with IsOurFile() (Redhat #486070) -TD
 * fix most gcc writable-strings warnings -TD
 
 2009-11-25 (2.8.8dev.2)
diff --git a/src/LYBookmark.c b/src/LYBookmark.c
index 6d3a9caf..0accf69c 100644
--- a/src/LYBookmark.c
+++ b/src/LYBookmark.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYBookmark.c,v 1.62 2009/01/02 00:01:00 tom Exp $
+ * $LynxId: LYBookmark.c,v 1.63 2010/01/13 01:35:24 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAlert.h>
@@ -496,7 +496,7 @@ void remove_bookmark_link(int cur,
      */
     if (stat(filename_buffer, &stat_buf) == 0) {
 	regular = (BOOLEAN) (S_ISREG(stat_buf.st_mode) && stat_buf.st_nlink == 1);
-	mode = ((stat_buf.st_mode & 0777) | 0600);	/* make it writable */
+	mode = ((stat_buf.st_mode & HIDE_CHMOD) | 0600);	/* make it writable */
 	(void) chmod(newfile, mode);
 	if ((nfp = LYReopenTemp(newfile)) == NULL) {
 	    (void) LYCloseInput(fp);