diff src/libpam/environ.rs @ 106:49d9e2b5c189

An irresponsible mix of implementing libpam-sys and other stuff.
author Paul Fisher <paul@pfish.zone>
date Thu, 26 Jun 2025 22:41:28 -0400
parents 13b4d2a19674
children
line wrap: on
line diff
--- a/src/libpam/environ.rs	Thu Jun 26 00:48:51 2025 -0400
+++ b/src/libpam/environ.rs	Thu Jun 26 22:41:28 2025 -0400
@@ -33,7 +33,7 @@
         if old.is_none() && value.is_none() {
             // pam_putenv returns an error if we try to remove a non-existent
             // environment variable, so just avoid that entirely.
-            return Ok(None)
+            return Ok(None);
         }
         let total_len = key.len() + value.map(OsStr::len).unwrap_or_default() + 2;
         let mut result = Vec::with_capacity(total_len);