-/* $OpenBSD: modload.c,v 1.10 1997/01/15 23:41:14 millert Exp $ */
+/* $OpenBSD: modload.c,v 1.11 1997/01/18 15:12:44 mickey Exp $ */
/* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */
/*
#define PART_RESRV 0x04
int devfd, modfd;
struct lmc_resrv resrv;
+char modout[80];
void
cleanup()
if (fileopen & MOD_OPEN)
close(modfd);
+
+ if(dounlink && unlink(modout) != 0)
+ err(17, "unlink(%s)", modout);
}
int
char *post = NULL;
char *out = NULL;
char *modobj;
- char modout[80], *p;
+ char *p;
struct exec info_buf;
struct stat stb;
u_int modsize; /* XXX */
err(16, "can't exec `%s'", post);
}
- if(dounlink && unlink(out) != 0)
- err(17, "unlink(%s)", out);
-
return 0;
}