From owner-freebsd-stable Tue Jul 9 18:21: 0 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A09937B400 for ; Tue, 9 Jul 2002 18:20:56 -0700 (PDT) Received: from dc-mx03.cluster1.charter.net (dc-mx03.cluster1.charter.net [209.225.8.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD3BB43E09 for ; Tue, 9 Jul 2002 18:20:55 -0700 (PDT) (envelope-from glennpj@charter.net) Received: from [24.158.214.244] (HELO charter.net) by dc-mx03.cluster1.charter.net (CommuniGate Pro SMTP 3.5.9) with ESMTP id 41927600 for FreeBSD-Stable@freebsd.org; Tue, 09 Jul 2002 21:20:27 -0400 Received: from gforce.johnson.home (localhost [127.0.0.1]) by charter.net (8.12.5/8.12.5) with ESMTP id g6A1Km98001358 for ; Tue, 9 Jul 2002 20:20:48 -0500 (CDT) (envelope-from glenn@gforce.johnson.home) Received: (from glenn@localhost) by gforce.johnson.home (8.12.5/8.12.5/Submit) id g6A1KlVS001357 for FreeBSD-Stable@freebsd.org; Tue, 9 Jul 2002 20:20:47 -0500 (CDT) (envelope-from glenn) From: Glenn Johnson Date: Tue, 9 Jul 2002 20:20:47 -0500 To: FreeBSD-Stable Subject: change linux_to_bsd_flock for linux_base-7.1 Message-ID: <20020710012047.GA1172@gforce.johnson.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Back in December of 2001 there was a thread on the emulation list about the Flex license manager not working with linux_base-7. The fix was to zero out the l_len and l_pid fields in linux_to_bsd_flock. I have been using this fix (patch attached) and FlexLM works fine and the applications are able to negotiate the license and run fine also. I have not experienced any problems with my other Linux applications either. I do not know if this fix does anything bad with regard to systems with linux_base-6. Since linux_base-7 is now the default linux_base, and the one everyone is supposed to use, should this fix be committed now? Thank you. -- Glenn Johnson glennpj@charter.net --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="linux_to_bsd_flock.patch" --- sys/compat/linux/linux_file.c.orig Mon Nov 5 13:08:22 2001 +++ sys/compat/linux/linux_file.c Tue Jul 9 14:54:03 2002 @@ -766,8 +766,8 @@ } bsd_flock->l_whence = linux_flock->l_whence; bsd_flock->l_start = (off_t)linux_flock->l_start; - bsd_flock->l_len = (off_t)linux_flock->l_len; - bsd_flock->l_pid = (pid_t)linux_flock->l_pid; + bsd_flock->l_len = 0; + bsd_flock->l_pid = 0; } static void @@ -818,8 +818,8 @@ } bsd_flock->l_whence = linux_flock->l_whence; bsd_flock->l_start = (off_t)linux_flock->l_start; - bsd_flock->l_len = (off_t)linux_flock->l_len; - bsd_flock->l_pid = (pid_t)linux_flock->l_pid; + bsd_flock->l_len = 0; + bsd_flock->l_pid = 0; } static void --Q68bSM7Ycu6FN28Q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message