edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] temp directories
@ 2016-01-07  8:56 Karl Dahlke
  0 siblings, 0 replies; only message in thread
From: Karl Dahlke @ 2016-01-07  8:56 UTC (permalink / raw)
  To: Edbrowse-dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-07  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-07  8:56 [Edbrowse-dev] temp directories Karl Dahlke

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).