Skip to content

Commit 03a2a2c

Browse files
brammooldouglasdrumond
authored andcommitted
patch 7.4.707 Problem: Undo files can have their executable bit set. Solution: Strip of the executable bit. (Mikael Berthe)
1 parent f807977 commit 03a2a2c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/undo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,8 +1614,8 @@ u_write_undo(name, forceit, buf, hash)
16141614
#endif
16151615
}
16161616

1617-
/* strip any s-bit */
1618-
perm = perm & 0777;
1617+
/* strip any s-bit and executable bit */
1618+
perm = perm & 0666;
16191619

16201620
/* If the undo file already exists, verify that it actually is an undo
16211621
* file, and delete it. */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
707,
759761
/**/
760762
706,
761763
/**/

0 commit comments

Comments
 (0)