summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-29 08:52:12 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-29 08:52:12 +0000
commita6ee236f0a8d24d3db3a9d4530981d5416fb8c85 (patch)
tree4292d836c739e8fd61a7d09c45f0114e4d345012 /libexec
parentb9732444464f8240c8ee3f3f7511c0154355eac8 (diff)
Check for error on open.
ENOENT happens to be the same as stderr. :)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/alpha/ldasm.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/ld.so/alpha/ldasm.S b/libexec/ld.so/alpha/ldasm.S
index 0e2cac14f85..32b3ebf1992 100644
--- a/libexec/ld.so/alpha/ldasm.S
+++ b/libexec/ld.so/alpha/ldasm.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldasm.S,v 1.1 2001/05/14 22:18:20 niklas Exp $ */
+/* $OpenBSD: ldasm.S,v 1.2 2001/05/29 08:52:11 art Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist
@@ -101,6 +101,9 @@ END(_dl_exit)
LEAF_NOPROFILE(_dl_open, 2)
ldiq v0, SYS_open
call_pal PAL_OSF1_callsys
+ beq a3, _dl_open_no_error
+ subq zero, v0, v0
+_dl_open_no_error:
RET
END(_dl_open)