diff options
| author | 2006-11-27 16:02:52 +0000 | |
|---|---|---|
| committer | 2006-11-27 16:02:52 +0000 | |
| commit | bc7b09291cba22c907917ff0f8793e9e9541db17 (patch) | |
| tree | 279926a0df82c7cc5205cd0766ffab4b9620cc75 /usr.bin/cvs/annotate.c | |
| parent | First attempt at making kvm86 MP safe, place mutex lock around calls (diff) | |
| download | wireguard-openbsd-bc7b09291cba22c907917ff0f8793e9e9541db17.tar.xz wireguard-openbsd-bc7b09291cba22c907917ff0f8793e9e9541db17.zip | |
don't process the file if its status is FILE_UNLINK.
Diffstat (limited to 'usr.bin/cvs/annotate.c')
| -rw-r--r-- | usr.bin/cvs/annotate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index 9115feb651e..212ceee18ad 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.31 2006/11/15 16:18:38 xsa Exp $ */ +/* $OpenBSD: annotate.c,v 1.32 2006/11/27 16:02:52 xsa Exp $ */ /* * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> * @@ -118,7 +118,8 @@ cvs_annotate_local(struct cvs_file *cf) cvs_file_classify(cf, NULL, 0); - if (cf->file_status == FILE_UNKNOWN) + if (cf->file_status == FILE_UNKNOWN || + cf->file_status == FILE_UNLINK) return; cvs_printf("Annotations for %s", cf->file_name); @@ -140,6 +141,7 @@ cvs_annotate_local(struct cvs_file *cf) xfree(content); + /* XXX */ TAILQ_FOREACH(lp, &(lines->l_lines), l_list) { if (lp->l_line == NULL) continue; |
