edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] temp directories
Date: Thu, 07 Jan 2016 03:56:54 -0500	[thread overview]
Message-ID: <20160007035654.eklhad@comcast.net> (raw)

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

                 reply	other threads:[~2016-01-07  8:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160007035654.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).