diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-23 11:37:25 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-24 12:39:35 -0700 |
commit | 885b9f3f762cdf18ff358509fd8838f8222b43ba (patch) | |
tree | a264d0d7406e5767cb22736e681dd8abbfe683d6 /src/connection/setuid.lisp | |
parent | ae2f8d30cbcd82126de7daeb4b94dd05d5b46f01 (diff) | |
download | consfigurator-885b9f3f762cdf18ff358509fd8838f8222b43ba.tar.gz |
return type in FOREIGN-FUNCALL of geteuid(2) is unsigned
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/setuid.lisp')
-rw-r--r-- | src/connection/setuid.lisp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection/setuid.lisp b/src/connection/setuid.lisp index 8b3353f..e61222b 100644 --- a/src/connection/setuid.lisp +++ b/src/connection/setuid.lisp @@ -32,7 +32,8 @@ (defclass setuid-connection (rehome-connection fork-connection) ()) (defmethod establish-connection ((type (eql :setuid)) remaining &key to) - (unless (and (lisp-connection-p) (zerop (foreign-funcall "geteuid" :int))) + (unless (and (lisp-connection-p) + (zerop (foreign-funcall "geteuid" :unsigned-int))) (error "~&SETUIDing requires a Lisp image running as root")) (informat 1 "~&SETUIDing to ~A" to) (multiple-value-bind (match groups) |