mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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:
parent
76748474eb
commit
2621949f6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56357
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user