projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no message)
[unix-history]
/
usr
/
src
/
old
/
dump.4.1
/
dumpoptr.c
diff --git
a/usr/src/old/dump.4.1/dumpoptr.c
b/usr/src/old/dump.4.1/dumpoptr.c
index
b23231c
..
59d0e6f
100644
(file)
--- a/
usr/src/old/dump.4.1/dumpoptr.c
+++ b/
usr/src/old/dump.4.1/dumpoptr.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)dumpoptr.c 1.
5
(Berkeley) %G%";
+static char *sccsid = "@(#)dumpoptr.c 1.
6
(Berkeley) %G%";
#include "dump.h"
/*
#include "dump.h"
/*
@@
-346,26
+346,24
@@
fstabsearch(key)
{
register struct pfstab *pf;
register struct fstab *fs;
{
register struct pfstab *pf;
register struct fstab *fs;
- register int i, keylength;
char *rawname();
if (table == NULL)
return ((struct fstab *)0);
char *rawname();
if (table == NULL)
return ((struct fstab *)0);
- keylength = min(strlen(key), sizeof (table->pf_fstab->fs_file));
for (pf = table; pf; pf = pf->pf_next) {
fs = pf->pf_fstab;
for (pf = table; pf; pf = pf->pf_next) {
fs = pf->pf_fstab;
- if (str
ncmp(fs->fs_file, key, keylength
) == 0)
+ if (str
cmp(fs->fs_file, key
) == 0)
return (fs);
return (fs);
- if (str
ncmp(fs->fs_spec, key, keylength
) == 0)
+ if (str
cmp(fs->fs_spec, key
) == 0)
return (fs);
return (fs);
- if (str
ncmp(rawname(fs->fs_spec), key, keylength
) == 0)
+ if (str
cmp(rawname(fs->fs_spec), key
) == 0)
return (fs);
if (key[0] != '/'){
if (*fs->fs_spec == '/' &&
return (fs);
if (key[0] != '/'){
if (*fs->fs_spec == '/' &&
- str
ncmp(fs->fs_spec + 1, key, keylength
) == 0)
+ str
cmp(fs->fs_spec + 1, key
) == 0)
return (fs);
if (*fs->fs_file == '/' &&
return (fs);
if (*fs->fs_file == '/' &&
- str
ncmp(fs->fs_file + 1, key, keylength
) == 0)
+ str
cmp(fs->fs_file + 1, key
) == 0)
return (fs);
}
}
return (fs);
}
}