#5431 closed bug (fixed)
diff with wrong filenames
Reported by: | Adek336 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta2 |
Component: | Applications/Command Line Tools | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
diff existing-file existing-file
works fine
diff non-existant non-existant
should write an error message for each file and return non-zero, it doesn't
diff existing-file non-existant
and diff non-existant existing-file
produces the error message "bad file descriptor"
Attachments (1)
Change History (9)
comment:1 by , 15 years ago
Version: | R1/alpha1 → R1/Development |
---|
by , 14 years ago
comment:2 by , 14 years ago
patch: | 0 → 1 |
---|
comment:3 by , 14 years ago
indeed, the attached patch seems to fix it. however, I hesitate to commit it because I'm afraid that NONEXISTENT (==-2) and UNOPENED (==-1) that are internal constants in diffutils might collide with valid errno.
comment:4 by , 12 years ago
patch: | 1 → 0 |
---|
comment:5 by , 12 years ago
If/when this is fixed it should be done in such as way that it can be upstreamed in diffutils, so we don't have to keep repatching it with new diffutil releases.
comment:6 by , 10 years ago
The recipe for diffutils 3.3 in haikuports still has this problem. Maybe the POSIX error mapper could be used to "fix" the error codes.
comment:7 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 by , 5 years ago
Milestone: | R1 → R1/beta2 |
---|
Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone
That could be a positive error code problem.