From owner-freebsd-hackers Thu Jan 18 07:28:40 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA13178 for hackers-outgoing; Thu, 18 Jan 1996 07:28:40 -0800 (PST) Received: from bell.cs.strath.ac.uk (mmdf@bell.cs.strath.ac.uk [130.159.196.126]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA13056 for ; Thu, 18 Jan 1996 07:28:05 -0800 (PST) Received: from neilson.cs.strath.ac.uk by bell.cs.strath.ac.uk id aa25321; 18 Jan 96 15:18 GMT To: hackers@freebsd.org cc: phil@cs.strath.ac.uk Subject: execve won't load interpreters Date: Thu, 18 Jan 96 15:18:47 +0000 From: Philip Murray Message-ID: <9601181518.aa25321@bell.cs.strath.ac.uk> Sender: owner-hackers@freebsd.org Precedence: bulk Hi, I would first like to say I am impressed with FreeBSD - it is good to be able to have a *REAL* OS at home (and its FREE)! But unfortunately I do have a problem. I have been trying to set up some text filters for lpd (I even used one from the handbook) and discovered that lpd couldn't execve scripts. I then tested this myself and get an "Exec Format error" when trying to execve interpreted files. I see that the shells use their own code for detecting scripts but I assume lpd relies on execve to do it all. I am running FreeBSD 2.1 and get the error with both my modified kernel and also with the original GENERIC kernel. I had a quick look at the source code and found some code to deal with interpreted files (in kern_exec.c) but I can't find the code that is meant to detect interpreted files (I'm afraid I don't know much about kernel hacking). Anyone have any ideas? Phil.