4 ms·
If your reaction to Rust actually following the prototype of chmod but not accepting conversions signed/unsigned silently is to redefine chmod so you can do it
by boardwaalk 6y ago
If your reaction to Rust actually following the prototype of chmod but not accepting conversions signed/unsigned silently is to redefine chmod so you can do it like you’d do in C… that seems a little bullheaded to me. Wrapping a C function is dangerous in a literal and real sense, doing “-1 as u32” is not at all.
- thaumasiotes 6y ago> If your reaction to Rust actually following the prototype of chmod but not accepting conversions Eh... as the article points out, the chown documentation specifically says that you are expected to provide negative numbers. The spec is obviously bugged. This limits the amount of righteousness you can claim over "but we followed the spec (that we knew was wrong)!"