From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:39]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 6019077D0D for ; Thu, 7 Jan 2016 00:56:12 -0800 (PST) Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-07v.sys.comcast.net with comcast id 2wwv1s0012N9P4d01wwvSu; Thu, 07 Jan 2016 08:56:55 +0000 Received: from eklhad ([IPv6:2601:405:4001:e487:21e:4fff:fec2:a0f1]) by resomta-ch2-13v.sys.comcast.net with comcast id 2wwu1s0062MDcd701wwvw4; Thu, 07 Jan 2016 08:56:55 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.6.0+ Date: Thu, 07 Jan 2016 03:56:54 -0500 Message-ID: <20160007035654.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1452157015; bh=4hE7mXAT0o7XPwv8ouMGN1BpkOpHWKklLM+jHx9INeM=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=ozmEnKt4P1ChAGGppbEWEXEmqBSej7yfRle9+Pcr+aHHs602RzBl/tc5O5g++2/bf +ljloerZugjbhd3Z8/27ISV8PfRPXOoOXIjQA5aA4feYcItIvJDwis8QYzYP8OkQxW 9c3LqcrdknG7Dg8kflnrZWYiM9FZaY6BSJiJmHUmMy8rnsSAzzCFdPchvMePH/ZkID E4ymy+LUsm2LQVEeFDVpSgoJHR5mfhitqMflbRYcZuYEeJ1WPd9YoR0vQo6Ifj81iV vRpNmzXFcdHWYLwq1mG/5SBoargZVo2lmubGP9gqhXadUEi/W8R5/vz5Ei5Y7QYF8P cODMZsm39qixA== Subject: [Edbrowse-dev] temp directories X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 08:56:12 -0000 Prior to last commit, the temp directory /tmp/.edbrowse was created only when a plugin had to use a temp file, to play the music or convert pdf or whatever. But we're talking about using temp areas for many more things, data files, fifos, etc, so now the temp directory is created at startup. If this can't be done, an error message is printed and at least edbrowse can be an editor, though probably not much more. I also create a user specific directory /tmp/.edbrowse/nnn effective user id. We may start using this in a multiuser system, I don't know. Also on such a system it is better for a startup script to mkdir /tmp/.edbrowse chmod 1777 /tmp/.edbrowse Then files and subdirectories can't be replaced. Geoff I believe you said the temp directory in windows is actually under each user, not system wide, so no need to further subdivide it into users, but to keep the code the same I still make such a directory with user id = 0. The user specific dir is 0700, and I may in the near future create all temp files under that, so they are protected in a directory that only you can access. Karl Dahlke