diff --git a/src/undo.c b/src/undo.c index 034d16c14e..c29832b7c0 100644 --- a/src/undo.c +++ b/src/undo.c @@ -1614,8 +1614,8 @@ u_write_undo(name, forceit, buf, hash) #endif } - /* strip any s-bit */ - perm = perm & 0777; + /* strip any s-bit and executable bit */ + perm = perm & 0666; /* If the undo file already exists, verify that it actually is an undo * file, and delete it. */ diff --git a/src/version.c b/src/version.c index b6676b7620..47015b142b 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 707, /**/ 706, /**/