Opened 15 years ago

Closed 15 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:
Platform: All

Description

~> 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, 15 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, 15 years ago

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

comment:3 by monni, 15 years ago

http://dev.haiku-os.org/browser/haiku/trunk/src/bin/tar/config.h#L971

change to:

/* #undef STRERROR_R_CHAR_P */

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

comment:4 by axeld, 15 years ago

Following POSIX, btw.

comment:5 by korli, 15 years ago

Resolution: fixed
Status: newclosed

committed in hrev29399.

Note: See TracTickets for help on using tickets.