chiark / gitweb /
clippy omg bugfix!
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 Aug 2020 00:49:36 +0000 (01:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 Aug 2020 00:49:36 +0000 (01:49 +0100)
src/cmdlistener.rs

index cb46db42cd016af0e28ee6615b8d1bccaee85861..6022473fffdb6beab3a3f8fe68e6fa6443359b64 100644 (file)
@@ -454,7 +454,7 @@ impl CommandListener {
     let listener = UnixListener::bind(path)
       .with_context(|| format!("bind command socket {:?}", &path))?;
 
-    fs::set_permissions(path, unix::fs::PermissionsExt::from_mode(0666))
+    fs::set_permissions(path, unix::fs::PermissionsExt::from_mode(0o666))
       .with_context(|| format!("chmod sommand socket {:?}", &path))?;
 
     CommandListener { listener }