Page MenuHomeFreeBSD

D34901.id104966.diff
No OneTemporary

D34901.id104966.diff

Index: usr.sbin/lpr/lpr/lpr.c
===================================================================
--- usr.sbin/lpr/lpr/lpr.c
+++ usr.sbin/lpr/lpr/lpr.c
@@ -68,7 +68,6 @@
#include <dirent.h>
#include <fcntl.h>
-#include <a.out.h>
#include <err.h>
#include <locale.h>
#include <signal.h>
@@ -703,7 +702,6 @@
static int
test(const char *file)
{
- struct exec execb;
size_t dlen;
int fd;
char *cp, *dirpath;
@@ -728,14 +726,6 @@
printf("%s: cannot open %s\n", progname, file);
return(-1);
}
- /*
- * XXX Shall we add a similar test for ELF?
- */
- if (read(fd, &execb, sizeof(execb)) == sizeof(execb) &&
- !N_BADMAG(execb)) {
- printf("%s: %s is an executable program", progname, file);
- goto error1;
- }
(void) close(fd);
if (rflag) {
/*
@@ -763,11 +753,6 @@
printf("%s: %s: is not removable by you\n", progname, file);
}
return(0);
-
-error1:
- printf(" and is unprintable\n");
- (void) close(fd);
- return(-1);
}
static int

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 26, 11:47 AM (6 m, 15 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17803571
Default Alt Text
D34901.id104966.diff (974 B)

Event Timeline