From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29217 invoked from network); 20 Oct 1998 12:41:13 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 20 Oct 1998 12:41:13 -0000 Received: from saturn.persimmon.co.uk (saturn.persimmon.co.uk [194.129.133.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA04849 for ; Tue, 20 Oct 1998 08:32:48 -0400 Received: from pan.persimmon.co.uk (pan [194.129.133.10]) by saturn.persimmon.co.uk (8.9.1/8.9.1) with SMTP id NAA07329 for ; Tue, 20 Oct 1998 13:32:47 +0100 (BST) Received: by pan.persimmon.co.uk (5.65v4.0/1.1.19.2/04Feb98-1110AM) id AA18160; Tue, 20 Oct 1998 13:32:47 +0100 From: Aideen McConville Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 20 Oct 1998 13:32:47 +0100 (BST) To: axp-list@redhat.com Subject: DU binaries and /sbin/loader (argv[0] problem?) X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-Id: <13868.32374.553367.438108@pan.persimmon.co.uk> Hi, I've tried running some 3.2 DU binaries under RH 5.1 (both 2.0.34 and 2.0.35 kernels) and don't know what to do about the "/sbin/loader being passed as argv[0]" problem. Communicator (communicator-v406-export.alpha-dec-osf3.2.tar.gz) complains about "/sbin/loader: Fatal Error: loader cannot be invoked directly" but then runs ok. XEmacs (as built for DU3.2) gets very confused, thinking that /sbin/loader is supposed to be the xemacs binary! I tried Oleg Gusev's (oleg@leontief.ru) fix [FAQ:how to send e-mail from netscape] --- exec.c Tue Jan 20 17:57:24 1998 +++ exec.c~ Tue Dec 2 18:35:05 1997 @@ -654,7 +654,7 @@ dput(bprm->dentry); bprm->dentry = NULL; remove_arg_zero(bprm); - bprm->p = copy_strings(1, &bprm->filename, bprm->page, bprm->p, 2); + bprm->p = copy_strings(1, dynloader, bprm->page, bprm->p, 2); bprm->argc++; bprm->loader = bprm->p; dentry = open_namei(dynloader[0], 0, 0); This worked for xemacs but sent communicator into a loop at startup. Is there any other fix? Thanks, -- Aideen