Skip to content

Implement md5sum (closes #47) #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2014
Merged

Implement md5sum (closes #47) #143

merged 1 commit into from
Mar 25, 2014

Conversation

Arcterus
Copy link
Collaborator

To get this to work, I had to add @DaGenix's rust-crypto as a submodule. This required some fairly significant changes to the Makefile, mainly revolving around adding the ability to execute custom Makefiles for the utilities that need them (see md5sum for an example).

This is also fixes truncate for the latest Rust.

cnd added a commit that referenced this pull request Mar 25, 2014
@cnd cnd merged commit 2e124cc into uutils:master Mar 25, 2014
if binary {
safe_unwrap!(file.read_to_end())
} else {
let val = safe_unwrap!(file.read_to_str()).into_bytes(); // XXX: i don't know why the variable is necessary
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is almost certainly rust-lang/rust#5941, you can work around it via

(safe_unwrap!(file.read_to_str())).into_bytes()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much. Now it makes sense as to why that's happening.

@Arcterus
Copy link
Collaborator Author

Yep, that's the plan. :)

jbcrail pushed a commit to jbcrail/coreutils that referenced this pull request Apr 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants