Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/xcvs/dist/src Don't abort with an assertion wh...
details: https://anonhg.NetBSD.org/src/rev/dec24ab3461c
branches: trunk
changeset: 785728:dec24ab3461c
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 27 18:15:13 2013 +0000
description:
Don't abort with an assertion when a directory cannot be found in a
repository. This could happen when someone copies from one directory
to another CVS files or when things get corrupted. Provide an explanatory
error message instead.
diffstat:
external/gpl2/xcvs/dist/src/lock.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r fa75bc43b9ab -r dec24ab3461c external/gpl2/xcvs/dist/src/lock.c
--- a/external/gpl2/xcvs/dist/src/lock.c Wed Mar 27 12:11:57 2013 +0000
+++ b/external/gpl2/xcvs/dist/src/lock.c Wed Mar 27 18:15:13 2013 +0000
@@ -230,6 +230,9 @@
* might have symlinks present
*/
len = find_root(repository, current_parsed_root->directory);
+ if (len == -1)
+ error (1, 0, "%s not found in %s",
+ repository, current_parsed_root->directory);
assert(len != -1);
short_repos = repository + len + 1;
Home |
Main Index |
Thread Index |
Old Index