SCCS-vsn: sbin/restore/interactive.c 5.5
-static char sccsid[] = "@(#)interactive.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)interactive.c 5.5 (Berkeley) %G%";
#endif not lint
#include "restore.h"
#endif not lint
#include "restore.h"
register struct arglist *ap;
{
static struct afile single;
register struct arglist *ap;
{
static struct afile single;
int size;
ap->head = ap->last = (struct afile *)0;
size = expand(arg, 0, ap);
if (size == 0) {
int size;
ap->head = ap->last = (struct afile *)0;
size = expand(arg, 0, ap);
if (size == 0) {
- single.fnum = lookupname(arg)->e_ino;
+ ep = lookupname(arg);
+ single.fnum = ep ? ep->e_ino : 0;
single.fname = savename(arg);
ap->head = &single;
ap->last = ap->head + 1;
single.fname = savename(arg);
ap->head = &single;
ap->last = ap->head + 1;