=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/diff.c,v retrieving revision 1.104 retrieving revision 1.105 diff -c -r1.104 -r1.105 *** src/usr.bin/cvs/diff.c 2006/06/16 14:07:42 1.104 --- src/usr.bin/cvs/diff.c 2006/06/16 20:01:10 1.105 *************** *** 1,4 **** ! /* $OpenBSD: diff.c,v 1.104 2006/06/16 14:07:42 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: diff.c,v 1.105 2006/06/16 20:01:10 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 191,197 **** } else if (cf->file_status != FILE_REMOVED) { if (fstat(cf->fd, &st) == -1) fatal("fstat failed %s", strerror(errno)); ! if ((b2 = cvs_buf_load(cf->file_path, BUF_AUTOEXT)) == NULL) fatal("failed to load %s", cf->file_path); st.st_mtime = cvs_hack_time(st.st_mtime, 1); --- 191,197 ---- } else if (cf->file_status != FILE_REMOVED) { if (fstat(cf->fd, &st) == -1) fatal("fstat failed %s", strerror(errno)); ! if ((b2 = cvs_buf_load_fd(cf->fd, BUF_AUTOEXT)) == NULL) fatal("failed to load %s", cf->file_path); st.st_mtime = cvs_hack_time(st.st_mtime, 1);