Pass empty second argument to dup() call in clone

I don't know if this was there for a reason, but it was making the dup()
fail with tcpd, and I don't seem this being handled specially in redoxfs
or anywhere else.
This commit is contained in:
Ian Douglas Scott
2017-07-05 22:45:27 -07:00
parent d4e295a385
commit b2df8d676f

View File

@@ -267,7 +267,7 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<ContextId> {
let scheme = schemes.get(file.scheme).ok_or(Error::new(EBADF))?;
scheme.clone()
};
scheme.dup(file.number, b"clone")
scheme.dup(file.number, b"")
};
match result {
Ok(new_number) => {