aboutsummaryrefslogtreecommitdiff
path: root/sbin/ldconfig
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>2000-01-21 02:15:27 +0000
committerJohn Polstra <jdp@FreeBSD.org>2000-01-21 02:15:27 +0000
commit2621949f6f277bbdb9c20e11156e577a14dcb965 (patch)
treef12db79f7677b69b25a1ab43c8af2e7a27100baa /sbin/ldconfig
parent76748474eba226ff4bc26235fac5b716c224caa1 (diff)
downloadsrc-2621949f6f277bbdb9c20e11156e577a14dcb965.tar.gz
src-2621949f6f277bbdb9c20e11156e577a14dcb965.zip
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>
Notes
Notes: svn path=/head/; revision=56357
Diffstat (limited to 'sbin/ldconfig')
-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 18186d6499de..6af39b655d2f 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]);