mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
Improve error message wording when attempting to link to a non-existent
file on the local host. PR: 10042 Submitted by: Chris Costello <phoenix@calldei.com>
This commit is contained in:
parent
eef33ce9bd
commit
c5e72606a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44392
@ -26,7 +26,7 @@
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: file.c,v 1.3 1997/11/12 04:39:33 obrien Exp $
|
||||
* $Id: file.c,v 1.4 1998/09/17 00:15:15 des Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -109,7 +109,7 @@ file_retrieve(struct fetch_state *fs)
|
||||
if (fs->fs_linkfile) {
|
||||
fs->fs_status = "checking path";
|
||||
if (stat(fs->fs_proto, &sb) == -1) {
|
||||
warn("non-unexistent");
|
||||
warn("%s", (char *)fs->fs_proto);
|
||||
return EX_NOINPUT;
|
||||
}
|
||||
fs->fs_status = "symlink";
|
||||
|
Loading…
Reference in New Issue
Block a user