diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-09-19 18:46:12 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-10-23 11:05:14 -0700 |
commit | f5930a8f728b4efb20d5ecd229e407d4307dea74 (patch) | |
tree | 869768f169462d8f057765a7fd8fc5b2d31e7c50 | |
parent | f949106044d0ced99ba575ee06d2d2fec67fba9b (diff) | |
download | consfigurator-f5930a8f728b4efb20d5ecd229e407d4307dea74.tar.gz |
be more specific regarding POSIX and the creation of temporary dirs
POSIX lacks 'mktemp -d' but it does have mkdtemp(3).
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r-- | src/util.lisp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.lisp b/src/util.lisp index 0396fde..11bd496 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -175,9 +175,9 @@ supported." "Execute FORMS with a local temporary directory's pathname in DIR. Currently assumes GNU mktemp(1). -There is no WITH-REMOTE-TEMPORARY-DIRECTORY because POSIX doesn't have a way -to create temporary directories. If you need a remote temporary directory, -one solution is to convert your property to a :LISP property." +There is no WITH-REMOTE-TEMPORARY-DIRECTORY because POSIX doesn't include a +shell utility to create temporary directories. If you need a remote temporary +directory, one solution is to convert your property to a :LISP property." `(let ((,dir (ensure-directory-pathname (stripln (run-program "umask 077; mktemp -d" :output :string))))) |