News for hackers. Stuff that matters.
Re:Show HN: Quickly copy a file between computers by srl on Saturday February 16, 2013 @01:29PM (#5232416)
This solution is worse than the shell hack, by a lot. From the source:

    char filename[MAXNAMELEN];
and then a few lines down...

    filename_size = 0;
    memcpy(&filename_size, buf, sizeof(int));
    memcpy(filename, &buf[sizeof(int)], filename_size);
Oops! Looks like both the client and the server have to be trusted, otherwise we've got at least one probably-exploitable vulnerability. And there's no mechanism for authentication, so it's really only safe to use on locally-secured network. (That took about 40 seconds to find, by the way - I would not be particularly suprised if there were more subtly lurking issues.)

I sympathize with the sentiment of "people should go out and try to create things themselves, even at the risk of failing" (or "especially" at the risk of failing), but from any objective standpoint, bcp isn't a good program. 400 lines of C to badly accomplish what 2 lines of shell can do? Someone else commented about it being very much in the unix spirit - no, I don't really think so. netcat + openssl would be in the unix spirit.

Not meant to be a criticism of the author - it's a cool project, if you don't care about certain "real-world" concerns (which isn't as unreasonable as it sounds).

Re:Show HN: Quickly copy a file between computers by zomgbbq on Saturday February 16, 2013 @01:55PM (#5232519)
The comments here remind me of the negative feedback Heather Arthur got when she dared to open-source some code: http://harthur.wordpress.com/2013/01/24/771/. The code is on Github. If you find a bug then why not fix it and send a pull-request instead of the negative public criticsm?
Re:Show HN: Quickly copy a file between computers by tedunangst on Saturday February 16, 2013 @05:29PM (#5233318)
There's a difference between tossing some code on github and having random passersby poke fun at it, and submitting it yourself to HN.
Re:Show HN: Quickly copy a file between computers by timothybone on Saturday February 16, 2013 @08:16PM (#5233820)
It's a matter of opinion. For me projects (including this one) is news I prefer on HN
Re:Show HN: Quickly copy a file between computers by vacri on Sunday February 17, 2013 @01:17AM (#5234377)
How do you do a pull request for "Use the pre-existing shell commands instead"?
Re:Show HN: Quickly copy a file between computers by diginux on Saturday February 16, 2013 @01:39PM (#5232452)
Yeah, this is also on my list of todos.

I should have noted somewhere, this isn't ready for production by any means, just a first iteration of an idea I had. It is currently intended to be used on a trusted network.

Thanks for pointing this out though.