aboutsummaryrefslogtreecommitdiff
path: root/src/util.lisp
diff options
context:
space:
mode:
authorHendur Saga <hendursaga@yahoo.com>2021-08-12 18:27:31 -0400
committerSean Whitton <spwhitton@spwhitton.name>2021-08-12 16:23:25 -0700
commitbe9e0eb50a94a0b18d5039a99d06670d3b5039a0 (patch)
tree30c3400d108b9cbb4af36383459a619b3b0ac4ab /src/util.lisp
parent4fe9bcadd5b06706379c67e82a91a4d2472b2971 (diff)
downloadconsfigurator-be9e0eb50a94a0b18d5039a99d06670d3b5039a0.tar.gz
fix portability of mkfifo(3) wrapper to FreeBSD
Signed-off-by: Hendur Saga <hendursaga@yahoo.com>
Diffstat (limited to 'src/util.lisp')
-rw-r--r--src/util.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.lisp b/src/util.lisp
index bedcb52..f498352 100644
--- a/src/util.lisp
+++ b/src/util.lisp
@@ -353,11 +353,11 @@ expansion as a starting point for your own DEFPACKAGE form for your consfig."
"Use mkfifo(3) to create a named pipe with a mkstemp(3)-like name."
(let* ((dir (drop-trailing-slash (or (getenv "TMPDIR") "/tmp")))
(dir-ls (run-program
- `("env" "LANG=C" "ls" "-nd" ,dir) :output :string))
+ `("env" "LANG=C" "ls" "-lnd" ,dir) :output :string))
(prefix (strcat dir "/tmp.")))
(unless (and (char= #\d (char dir-ls 0))
(char-equal #\t (char dir-ls 9))
- (zerop (parse-integer (caddr (split-string dir-ls)))))
+ (zerop (parse-integer (caddr (words dir-ls)))))
(error "~A is not a root-owned dir with the sticky bit set." dir))
(flet ((mktemp ()
;; We need to generate a temporary name. We don't have to worry