diff options
author | 2005-06-17 15:09:55 +0000 | |
---|---|---|
committer | 2005-06-17 15:09:55 +0000 | |
commit | a8778568f3d3bf2a9e86ee67da2f4a832c182e25 (patch) | |
tree | 9833bf8282be4aa1af5ca7e0c93621e1f660c133 /usr.bin/cvs/file.c | |
parent | when pruning don't try to remove any directories outside (diff) | |
download | wireguard-openbsd-a8778568f3d3bf2a9e86ee67da2f4a832c182e25.tar.xz wireguard-openbsd-a8778568f3d3bf2a9e86ee67da2f4a832c182e25.zip |
correctly build a temporary copy of the client its repository
localy, so the server can execute the local commands on it
and pipe the output to the client.
with this diff in, our server is now working, please note
that we currently don't have support for all commands yet,
but you can expect this soon.
ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 0b02b972e56..288fd7ca24a 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.89 2005/06/17 14:58:23 joris Exp $ */ +/* $OpenBSD: file.c,v 1.90 2005/06/17 15:09:55 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -1081,10 +1081,11 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent) cfp->cf_cvstat = CVS_FST_ADDED; else { /* check last modified time */ - if (ent->ce_mtime == (time_t)st.st_mtime) + if (ent->ce_mtime == (time_t)st.st_mtime) { cfp->cf_cvstat = CVS_FST_UPTODATE; - else + } else { cfp->cf_cvstat = CVS_FST_MODIFIED; + } } } } else { @@ -1104,6 +1105,8 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent) if (ent->ce_status == CVS_ENT_REMOVED) cfp->cf_cvstat = CVS_FST_REMOVED; + else if (ent->ce_status == CVS_ENT_UPTODATE) + cfp->cf_cvstat = CVS_FST_UPTODATE; else cfp->cf_cvstat = CVS_FST_LOST; } |