Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Yajirobe
· 3y ago · 0 comments
goto statement in something as important as sudo? Seriously? Talk about bad practices.
Comments
[–]
arc-in-space
3y ago
goto to a cleanup/error handling block at the end of a function is a fairly common C idiom
[–]
Reubensson
3y ago
Don't really see a problem using goto there. Simplyfies control flow and error handling. Assuming we are talking about same piece of code.
[–]
aflag
3y ago
I think if you read the kennel's code you're in to a big surprise.
[–]
jazzyjackson
3y ago
just because something's old doesn't mean it's bad