Browse Source

[master] Use prefix "sockcreator-" for tmp directory.

Use prefix "sockcreator-" for the private temporary directory
used for b10-sockcreator communication.

Discussed in jabber.

Will document separately (was not documented yet).
Jeremy C. Reed 13 years ago
parent
commit
b98523c126
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      src/bin/bind10/bind10_src.py.in

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+388.	[func]		jreed
+	Use prefix "sockcreator-" for the private temporary directory
+	used for b10-sockcreator communication.
+	(git -)
+
 387.	[build]		muks
 	Accept a --without-werror configure switch so that some builders can
 	disable the use of -Werror in CFLAGS when building.

+ 1 - 1
src/bin/bind10/bind10_src.py.in

@@ -892,7 +892,7 @@ class BoB:
         # the need to find the place ourself or bother users. Also, this
         # secures the socket on some platforms, as it creates a private
         # directory.
-        self._tmpdir = tempfile.mkdtemp()
+        self._tmpdir = tempfile.mkdtemp(prefix='sockcreator-')
         # Get the name
         self._socket_path = os.path.join(self._tmpdir, "sockcreator")
         # And bind the socket to the name