summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-01-21 02:15:27 +0000
committerjdp <jdp@FreeBSD.org>2000-01-21 02:15:27 +0000
commita69d0d68b5dd5f2db2800858fbe013f700e2eafb (patch)
tree462f046762d72de9f0fc320a2389e8abc207efcf /sbin
parent48f03e24d66f47f20a8a5a0ace2f1909f0d7c33e (diff)
downloadFreeBSD-src-a69d0d68b5dd5f2db2800858fbe013f700e2eafb.zip
FreeBSD-src-a69d0d68b5dd5f2db2800858fbe013f700e2eafb.tar.gz
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>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ldconfig/elfhints.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ldconfig/elfhints.c b/sbin/ldconfig/elfhints.c
index 18186d6..6af39b6 100644
--- a/sbin/ldconfig/elfhints.c
+++ b/sbin/ldconfig/elfhints.c
@@ -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]);
OpenPOWER on IntegriCloud