diff options
author | 2015-07-26 14:32:19 +0000 | |
---|---|---|
committer | 2015-07-26 14:32:19 +0000 | |
commit | 7e39cfac2ffac0c42ec7ef4100e19088ac5f4af2 (patch) | |
tree | 2d7ea5a813fbdd46b68a3014934762a3392e2b5d /usr.bin/patch/util.c | |
parent | Fix ba# attribute in rdroot entry. It should be 4096 (a valid size for (diff) | |
download | wireguard-openbsd-7e39cfac2ffac0c42ec7ef4100e19088ac5f4af2.tar.xz wireguard-openbsd-7e39cfac2ffac0c42ec7ef4100e19088ac5f4af2.zip |
Remove support for automatically checking files out of RCS. The
behavior is confusing to users and even GNU patch no longer does
it by default. OK krw@ guenther@
Diffstat (limited to 'usr.bin/patch/util.c')
-rw-r--r-- | usr.bin/patch/util.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c index ee6e5d12a9f..f9d47906300 100644 --- a/usr.bin/patch/util.c +++ b/usr.bin/patch/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.39 2015/01/16 06:40:10 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.40 2015/07/26 14:32:19 millert Exp $ */ /* * patch - a program to apply diffs to original files @@ -388,30 +388,6 @@ fetchname(const char *at, bool *exists, int strip_leading) return name; } -/* - * Takes the name returned by fetchname and looks in RCS directory - * for a checked in version. - */ -char * -checked_in(char *file) -{ - char *filebase, *filedir, tmpbuf[PATH_MAX]; - struct stat filestat; - - filebase = basename(file); - filedir = dirname(file); - -#define try(f, a1, a2, a3) \ -(snprintf(tmpbuf, sizeof tmpbuf, f, a1, a2, a3), stat(tmpbuf, &filestat) == 0) - - if (try("%s/RCS/%s%s", filedir, filebase, RCSSUFFIX) || - try("%s/RCS/%s%s", filedir, filebase, "") || - try("%s/%s%s", filedir, filebase, RCSSUFFIX)) - return file; - - return NULL; -} - void version(void) { |