Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dbbolton
on April 13, 2014
|
parent
|
context
|
favorite
| on:
Use after free bug in OpenSSL
What is up with that patch command? Why not
cd /usr/src; patch -p0 </path/008_openssl.patch ?
sarnowski
on April 13, 2014
|
next
[–]
Because now your command isn't /path/ independant. The original assumed you downloaded the patch to your current directory and you can just copy&paste this command. Your example requires me to modify your line making this "process" more error prone.
dbbolton
on April 17, 2014
|
parent
|
next
[–]
In that case, their command is exactly as "error prone" to anyone who did not download the patch to the PWD.
jzwinck
on April 13, 2014
|
prev
[–]
You should use && instead of ; but otherwise I wondered the same thing. Useless use of cat, it seems.
dbbolton
on April 17, 2014
|
parent
[–]
Why? How likely is `cd /usr/src` to fail?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: