Opened 11 years ago

Closed 11 years ago

#3514 closed bug (fixed)

[tar] wrong error message when file not found

Reported by: Adek336 Owned by: axeld
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


~> tar xf nonexistantfile
tar: nonexistantfile: Cannot open: Unknown system error
tar: Error is not recoverable: exiting now

It should say File not found instead of Unknown system error.

Change History (5)

comment:1 by kaliber, 11 years ago

I'm using tar 1.21 on haiku and it's working as expected (No such file or directory).

comment:2 by Adek336, 11 years ago

I'm using a hybrid build, maybe it's specific to that.

comment:3 by monni, 11 years ago

change to:

/* #undef STRERROR_R_CHAR_P */

strerror_r() returns "int" instead of "char *" in Haiku.

comment:4 by axeld, 11 years ago

Following POSIX, btw.

comment:5 by korli, 11 years ago

Resolution: fixed
Status: newclosed

committed in hrev29399.

Note: See TracTickets for help on using tickets.