summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-20 11:05:48 +0000
committerdes <des@FreeBSD.org>2003-03-20 11:05:48 +0000
commit0077bc4bf03f4063df206f64fbfeabd8874c66c5 (patch)
treee2a9cce479e792a591267e4acc8d5b00ca3377a1 /contrib/cvs/src
parentafab808bc4a70ddf1d56d2141776adcb9180cfc5 (diff)
downloadFreeBSD-src-0077bc4bf03f4063df206f64fbfeabd8874c66c5.zip
FreeBSD-src-0077bc4bf03f4063df206f64fbfeabd8874c66c5.tar.gz
Add support for OpenBSD extensions to the $CVSROOT/config syntax.
Approved by: peter Obtained from: OpenBSD
Diffstat (limited to 'contrib/cvs/src')
-rw-r--r--contrib/cvs/src/parseinfo.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/cvs/src/parseinfo.c b/contrib/cvs/src/parseinfo.c
index 9771692..250cd63 100644
--- a/contrib/cvs/src/parseinfo.c
+++ b/contrib/cvs/src/parseinfo.c
@@ -4,6 +4,8 @@
*
* You may distribute under the terms of the GNU General Public License as
* specified in the README file that comes with the CVS source distribution.
+ *
+ * $FreeBSD$
*/
#include "cvs.h"
@@ -340,6 +342,25 @@ parse_config (cvsroot)
goto error_return;
}
}
+ else if (strcmp (line, "tag") == 0) {
+ RCS_setlocalid(p);
+ }
+ else if (strcmp (line, "umask") == 0) {
+ cvsumask = (mode_t)(strtol(p, NULL, 8) & 0777);
+ }
+ else if (strcmp (line, "dlimit") == 0) {
+#ifdef BSD
+#include <sys/resource.h>
+ struct rlimit rl;
+
+ if (getrlimit(RLIMIT_DATA, &rl) != -1) {
+ rl.rlim_cur = atoi(p);
+ rl.rlim_cur *= 1024;
+
+ (void) setrlimit(RLIMIT_DATA, &rl);
+ }
+#endif /* BSD */
+ }
else if (strcmp (line, "PreservePermissions") == 0)
{
if (strcmp (p, "no") == 0)
OpenPOWER on IntegriCloud