From owner-freebsd-ports@FreeBSD.ORG Thu May 5 17:08:46 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A058F16A4CE for ; Thu, 5 May 2005 17:08:46 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CCE843D96 for ; Thu, 5 May 2005 17:08:46 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so659200wri for ; Thu, 05 May 2005 10:08:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YZnqDOkIeMJR7WJSSB3UX56gkDNW4rVyXJZ888dM21DqTq26biPioRSR8KJmlOGgh9D+NsTWoHHLzv7ZZ8ZgdbW2joxAbqfhszVfK2+q11WiaM4PJRKtebRir1sT1I/dTQwdcbcsS0LSKz5wLCHxw1xU1nEVghkI+fOaT2D74wI= Received: by 10.54.8.67 with SMTP id 67mr294571wrh; Thu, 05 May 2005 10:08:45 -0700 (PDT) Received: by 10.54.29.77 with HTTP; Thu, 5 May 2005 10:08:45 -0700 (PDT) Message-ID: <790a9fff05050510083f124871@mail.gmail.com> Date: Thu, 5 May 2005 12:08:45 -0500 From: Scot Hetzel To: FreeBSD-Ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: File Permission Changes caused by TorrentZip X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Scot Hetzel List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 17:08:46 -0000 I recently submitted the TorrentZip port and one thing it does when scanning a directory of Zip files, is it changes the Zip files permissions to 400 during the scan, and changes them back to 600 when TorrentZip is done. The reason the program is doing this is so that it doesn't attempt to rescan a previously scaned zip file. They are working on fixing this problem, but need to know what would be the best option. 1. Add the suid bit to the zip files permissions before scanning, and then remove when done scanning. 2. change the user execute bit on zip files permissions before scanning, and then remove when done scanning. NOTE: both options would keep the original file permissions when the scan has completed.