diff options
author | 2005-07-24 19:04:55 +0000 | |
---|---|---|
committer | 2005-07-24 19:04:55 +0000 | |
commit | 134f3b301118aa00595f4c93f954a31c31d595a5 (patch) | |
tree | ff6604b11dccd59f99cc6e29fa98b4519545d1f8 /usr.bin/cvs/file.c | |
parent | "cvslog.*" should really be "cvslog*" (diff) | |
download | wireguard-openbsd-134f3b301118aa00595f4c93f954a31c31d595a5.tar.xz wireguard-openbsd-134f3b301118aa00595f4c93f954a31c31d595a5.zip |
do not bail out in client mode if the file is not on disk at all.
noticed and ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 9c74553856e..9d19291b5ad 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.102 2005/07/24 18:54:47 joris Exp $ */ +/* $OpenBSD: file.c,v 1.103 2005/07/24 19:04:55 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -541,15 +541,12 @@ cvs_file_loadinfo(char *path, int flags, int (*cb)(CVSFILE *, void *), /* * No Entry available? fall back to stat(2)'ing the item, if - * that fails, bail out in client mode, or assume a file in - * server mode (it will show up as CVS_FST_UNKNOWN). + * that fails, assume a normal file. */ if (ent == NULL) { - if (stat(path, &st) == -1) { - if (cvs_cmdop != CVS_OP_SERVER) - goto fail; + if (stat(path, &st) == -1) type = DT_REG; - } else + else type = IFTODT(st.st_mode); } else { if (ent->ce_type == CVS_ENT_DIR) |