If a directory on the command line doesn't exist, warn about it

and proceed rather than quitting with a fatal error message.

PR:		bin/16056
Submitted by:	Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
This commit is contained in:
John Polstra 2000-01-21 02:15:27 +00:00
parent 76748474eb
commit 2621949f6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56357

View File

@ -217,8 +217,8 @@ update_elf_hints(const char *hintsfile, int argc, char **argv, int merge)
struct stat s;
if (stat(argv[i], &s) == -1)
err(1, "%s", argv[i]);
if (S_ISREG(s.st_mode))
warn("warning: %s", argv[i]);
else if (S_ISREG(s.st_mode))
read_dirs_from_file(hintsfile, argv[i]);
else
add_dir(hintsfile, argv[i]);