Annoying little fixes that should’ve landed by now #171
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "quick-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have some questions about certain changes.
@ -64,0 +74,4 @@.MT trinity@trinity.moe.ME ..\".SH COPYRIGHTWhy the second copyright?
mistake
@ -286,2 +287,3 @@/* easy seeking */if (!fdisstd(io[i].fd) && lseek(io[i].fd, io[i].seek, SEEK_SET) != -1) {if (!fdisstd(io[i].fd) && lseek(io[i].fd, io[i].seek, SEEK_SET) != -1){Could you explain this change?
The line did not fit within 80 columns and there was no other good place
to break it.
The line did not fit within 80 columns and there was no other good place
to break it.
Mistake.
@ -24,1 +25,3 @@Opens outputs for appending rather than updating.Opens outputs for appending rather than updating. Implies the.B -toption.I don't remember this being the case, I'll have to double check.
So, the
-aoption is a switch meant to bitwise-or the open(2) mode argument withO_APPEND; this lack of truncation is what the kernel does, not what the program does.-adoesn't imply-t, but-tis inconsequential when-ais already set.This change actually fixes a bug, without it, the program exits
unsuccessfully. The problem is that if you have truncate as true (the
default behavior) and try to append, the Rust standard library returns
an error, which makes sense.
@ -64,0 +71,4 @@.BR dj (1)utility\(cqs niche..\".SH AUTHOREmma Tebibyte should be credited here as the current in-tree mm(1) implementation was mostly faer work.
@ -43,9 +44,6 @@ appended to the list of files to use as outputs..\".SH DIAGNOSTICSIt's better, functionality wise, to quit on errorful input before the error occurs.
Merged.
Pull request closed