diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2006-07-28 21:38:06 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2006-07-28 21:38:06 +0000 |
commit | 1a1d097ab13e4fcd67ac151932f15e8db83b7108 (patch) | |
tree | f93d5f12b20fe21b80802e1af612a63c77354b66 /libexec | |
parent | 748b0bba3d8d14a8bfea4d8e0b888f7d3a277dfc (diff) |
Only stop processing prebind deletion if an actual error occurs.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/ldconfig/prebind_delete.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ld.so/ldconfig/prebind_delete.c b/libexec/ld.so/ldconfig/prebind_delete.c index 992937ffd2c..2e9fc6779e7 100644 --- a/libexec/ld.so/ldconfig/prebind_delete.c +++ b/libexec/ld.so/ldconfig/prebind_delete.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prebind_delete.c,v 1.7 2006/06/26 23:26:12 drahn Exp $ */ +/* $OpenBSD: prebind_delete.c,v 1.8 2006/07/28 21:38:05 drahn Exp $ */ /* * Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com> @@ -72,8 +72,9 @@ strip_file_or_dir(char *name) break; default: ; /* links and other files we skip */ + ret = 0; } - return -1; + return ret; } int |