d06870a
diff --git a/src/LYBookmark.c b/src/LYBookmark.c
d06870a
index 2a00a1b..960f56d 100644
d06870a
--- a/src/LYBookmark.c
d06870a
+++ b/src/LYBookmark.c
d06870a
@@ -493,7 +493,7 @@ void remove_bookmark_link(int cur,
d06870a
      */
d06870a
     if (stat(filename_buffer, &stat_buf) == 0) {
d06870a
 	regular = (S_ISREG(stat_buf.st_mode) && stat_buf.st_nlink == 1);
d06870a
-	mode = ((stat_buf.st_mode & 0777) | 0600);	/* make it writable */
d06870a
+	mode = ((stat_buf.st_mode & HIDE_CHMOD) | 0600);	/* make it writable */
d06870a
 	(void) chmod(newfile, mode);
d06870a
 	if ((nfp = LYReopenTemp(newfile)) == NULL) {
d06870a
 	    (void) LYCloseInput(fp);