debian bug #23229 - save file permissions
Use fqname buffer 1 for restoring the save file (just like save does when creating it) so the value won't change out from under the code in unixmain. - Also moved a tty-specific hack in docompress_file that was causing the 'y' response to the "keep the save file" prompt to be echoed twice.
This commit is contained in:
@@ -262,7 +262,7 @@ char *argv[];
|
||||
*/
|
||||
boolean remember_wiz_mode = wizard;
|
||||
#endif
|
||||
const char *fq_save = fqname(SAVEF, SAVEPREFIX, 0);
|
||||
const char *fq_save = fqname(SAVEF, SAVEPREFIX, 1);
|
||||
|
||||
(void) chmod(fq_save,0); /* disallow parallel restores */
|
||||
(void) signal(SIGINT, (SIG_RET_TYPE) done1);
|
||||
|
||||
Reference in New Issue
Block a user