summaryrefslogtreecommitdiffstats
path: root/sbin/restore/dirs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/restore/dirs.c')
-rw-r--r--sbin/restore/dirs.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c
index 327d3ed..ee37113 100644
--- a/sbin/restore/dirs.c
+++ b/sbin/restore/dirs.c
@@ -109,17 +109,7 @@ static char dirfile[MAXPATHLEN] = "#"; /* No file */
static char modefile[MAXPATHLEN] = "#"; /* No file */
static char dot[2] = "."; /* So it can be modified */
-/*
- * Format of old style directories.
- */
-#define ODIRSIZ 14
-struct odirect {
- u_short d_ino;
- char d_name[ODIRSIZ];
-};
-
static struct inotab *allocinotab(struct context *, long);
-static void dcvt(struct odirect *, struct direct *);
static void flushent(void);
static struct inotab *inotablookup(ino_t);
static RST_DIR *opendirfile(const char *);
@@ -288,6 +278,8 @@ pathsearch(const char *pathname)
struct direct *dp;
char *path, *name, buffer[MAXPATHLEN];
+ printf("Looking for %s\n", pathname);
+
strcpy(buffer, pathname);
path = buffer;
ino = ROOTINO;
@@ -332,9 +324,6 @@ searchdir(ino_t inum, char *name)
static void
putdir(char *buf, long size)
{
- struct direct cvtbuf;
- struct odirect *odp;
- struct odirect *eodp;
struct direct *dp;
long loc, i;
@@ -412,18 +401,6 @@ flushent(void)
dirloc = 0;
}
-static void
-dcvt(struct odirect *odp, struct direct *ndp)
-{
-
- memset(ndp, 0, (long)(sizeof *ndp));
- ndp->d_ino = odp->d_ino;
- ndp->d_type = DT_UNKNOWN;
- (void) strncpy(ndp->d_name, odp->d_name, ODIRSIZ);
- ndp->d_namlen = strlen(ndp->d_name);
- ndp->d_reclen = DIRSIZ(0, ndp);
-}
-
/*
* Seek to an entry in a directory.
* Only values returned by rst_telldir should be passed to rst_seekdir.
OpenPOWER on IntegriCloud