Code review fixes: branding consistency, exec euid check, netdb retry robustness
- Fix login prompt: 'RedBear login:' → 'Red Bear login:' (consistent branding) - exec-root-bypass: check both ruid and euid for root bypass (Linux checks effective UID) - netdb-retry: remove dead variables, check send() return on retry, clarify timeout comment
This commit is contained in:
@@ -13,7 +13,7 @@ index 6a963d8..59ffbd4 100644
|
||||
+# `user` #
|
||||
+# `root`:`password` #
|
||||
+################################
|
||||
|
||||
|
||||
diff --git a/res/motd b/res/motd
|
||||
index 5cd097a..dc28b04 100644
|
||||
--- a/res/motd
|
||||
@@ -22,3 +22,16 @@ index 5cd097a..dc28b04 100644
|
||||
-Welcome to Redox OS!
|
||||
+Welcome to Red Bear OS!
|
||||
|
||||
diff --git a/src/bin/login.rs b/src/bin/login.rs
|
||||
index 08e178c..f7f337a 100644
|
||||
--- a/src/bin/login.rs
|
||||
+++ b/src/bin/login.rs
|
||||
@@ -135,7 +135,7 @@ pub fn main() {
|
||||
loop {
|
||||
let user = liner::Context::new()
|
||||
.read_line(
|
||||
- liner::Prompt::from("\x1B[1mredox login:\x1B[0m "),
|
||||
+ liner::Prompt::from("\x1B[1mRed Bear login:\x1B[0m "),
|
||||
None,
|
||||
&mut liner::BasicCompleter::new(Vec::<String>::new()),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user