diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..ed496854df --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "redoxfs"] + path = redoxfs + url = https://github.com/redox-os/redoxfs.git diff --git a/redoxfs b/redoxfs new file mode 160000 index 0000000000..6c1d98cea8 --- /dev/null +++ b/redoxfs @@ -0,0 +1 @@ +Subproject commit 6c1d98cea83e2bb02b940959e6b07625ec12656f diff --git a/src/install.rs b/src/install.rs index 3c4d8d9457..54482ec7c4 100644 --- a/src/install.rs +++ b/src/install.rs @@ -190,7 +190,9 @@ pub fn install(config: Config, cookbook: Option<&str>) -> Result<(), String> { passwd.push_str(&format!("{};{};{};{};{};{};{}\n", username, password, uid, gid, name, home, shell)); } - file!("etc/passwd", passwd.as_bytes()); + if ! passwd.is_empty() { + file!("etc/passwd", passwd.as_bytes()); + } Ok(()) }