diff options
| author | Alexander Leidinger <netchild@FreeBSD.org> | 2018-08-11 16:12:23 +0000 |
|---|---|---|
| committer | Alexander Leidinger <netchild@FreeBSD.org> | 2018-08-11 16:12:23 +0000 |
| commit | bce2f1d7b9067b8db97942e6ae26fd681b698e9b (patch) | |
| tree | 7e612e02bf5465f744ebc8526f17c874b4af8fdc | |
| parent | edb1df35b08f85ed6c082d924ca078e43854071c (diff) | |
Notes
| -rw-r--r-- | sbin/restore/tape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 04cda7ebd6360..16dba12e673c6 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1314,8 +1314,8 @@ gethead(struct s_spcl *buf) return (FAIL); } if (swabl(buf->c_magic) != FS_UFS2_MAGIC && - buf->c_magic != NFS_MAGIC) { - if (buf->c_magic == OFS_MAGIC) { + swabl(buf->c_magic) != NFS_MAGIC) { + if (swabl(buf->c_magic) == OFS_MAGIC) { fprintf(stderr, "Format of dump tape is too old. Must use\n"); fprintf(stderr, |
