From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Tue, 02 Sep 2008 21:10:32 +0200 Message-ID: <48BD8FA8.6030707@gmail.com> References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BD80C0.80707@gmail.com> Reply-To: "Lennart Borgman \(gmail\)" , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220383688 27569 80.91.229.12 (2 Sep 2008 19:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 19:28:08 +0000 (UTC) Cc: 865@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 21:29:02 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KabYg-00006W-La for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 21:28:58 +0200 Original-Received: from localhost ([127.0.0.1]:42877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KabXh-00054f-7G for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 15:27:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KabXL-0004xQ-MU for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KabXJ-0004wh-Sp for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:35 -0400 Original-Received: from [199.232.76.173] (port=44979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KabXJ-0004wZ-Lq for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49121) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KabXJ-0003tQ-A5 for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82JRUmj029360; Tue, 2 Sep 2008 12:27:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m82JK4nf026297; Tue, 2 Sep 2008 12:20:04 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Sep 2008 19:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 865-submit@emacsbugs.donarmstrong.com id=B865.122038264524213 (code B ref 865); Tue, 02 Sep 2008 19:20:03 +0000 Original-Received: (at 865) by emacsbugs.donarmstrong.com; 2 Sep 2008 19:10:45 +0000 Original-Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82JAfjV024189 for <865@emacsbugs.donarmstrong.com>; Tue, 2 Sep 2008 12:10:43 -0700 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:59915 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KabGy-0005Sx-8Y; Tue, 02 Sep 2008 21:10:41 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080902-0, 2008-09-02), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KabGy-0005Sx-8Y. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KabGy-0005Sx-8Y 3c1ef08dc8d834528f52079a74001984 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 02 Sep 2008 15:27:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20035 Archived-At: Eli Zaretskii wrote: >> Date: Tue, 02 Sep 2008 20:06:56 +0200 >> From: "Lennart Borgman (gmail)" >> Cc: emacs-pretest-bug@gnu.org, 865@emacsbugs.donarmstrong.com >> >> why not just check with file-writeable-p here? > > Don't forget that on Windows, almost every file is writable. You > don't want everybody and their dog to be able to look at your server > directory, do you? > > IOW, this test is not about being able to write to a directory, it's > about keeping your private data private. Yes, you are right it was a silly suggestion. On the other hand the doc string is wrong. Isn't it impossible to be sure that there are no race conditions? And the list with different things can't be fullfilled. On w32 the location is maybe more meaningful than the owner? I would suggest checking for that instead on w32. BTW there is a (ignore-errors (delete-file server-file)) in server-start. I do not like the ignore-errors there. Check if the file is there first and if it is delete it.