vpatch (--browse) has a 'R' restore command. If
backups are disabled it cannot work, so don't try.
Signed-off-by: NeilBrown <neil@brown.name>
mesg = "Cannot restore a folder.";
else if (!pl[pos].is_merge)
mesg = "File has not been saved, cannot restore.";
+ else if (!backup)
+ mesg = "Backups are disabled, nothing to restore!";
else {
/* rename foo.porig to foo, and clear is_merge */
char *file = pl[pos].file;