X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/ad7871609881e73855d0b04da49b486cd93efca7..ed554bc5e4201344d7eaad78263566e79428759c:/usr/src/sbin/dump/optr.c diff --git a/usr/src/sbin/dump/optr.c b/usr/src/sbin/dump/optr.c index afc9b8c723..6db0908509 100644 --- a/usr/src/sbin/dump/optr.c +++ b/usr/src/sbin/dump/optr.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)optr.c 8.1 (Berkeley) 6/5/93"; +static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94"; #endif /* not lint */ #include @@ -455,12 +455,15 @@ fstabsearch(key) { register struct pfstab *pf; register struct fstab *fs; + char *rn; for (pf = table; pf != NULL; pf = pf->pf_next) { fs = pf->pf_fstab; if (strcmp(fs->fs_file, key) == 0 || - strcmp(fs->fs_spec, key) == 0 || - strcmp(rawname(fs->fs_spec), key) == 0) + strcmp(fs->fs_spec, key) == 0) + return (fs); + rn = rawname(fs->fs_spec); + if (rn != NULL && strcmp(rn, key) == 0) return (fs); if (key[0] != '/') { if (*fs->fs_spec == '/' &&