diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-13 19:43:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-13 19:43:22 +0000 |
commit | b35b225becf434ea14dcf85d59100220221fec3c (patch) | |
tree | 1cd5a1049d683b210bd507bc55872de1e34d299a /libexec/ld.so | |
parent | 6a7f11e2b7c957d49c970b86b15be188d688bde4 (diff) |
print the name
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/ldd/ldd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/ldd/ldd.c b/libexec/ld.so/ldd/ldd.c index e21b0c0f68a..07e552e59e4 100644 --- a/libexec/ld.so/ldd/ldd.c +++ b/libexec/ld.so/ldd/ldd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldd.c,v 1.5 2001/06/08 05:20:38 deraadt Exp $ */ +/* $OpenBSD: ldd.c,v 1.6 2001/06/13 19:43:21 deraadt Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -97,6 +97,8 @@ doit(char *name) char *buf; int fd, i, size, status; + printf("%s:\n", name); + if ((fd = open(name, O_RDONLY)) < 0) { warn("%s", name); return 1; |