Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115570305
D34901.id104966.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
D34901.id104966.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D34901: lpr: remove a.out binary detection
Attached
Detach File
Event Timeline
Log In to Comment