Add support for OpenBSD extensions to the $CVSROOT/config syntax.

Approved by:	peter
Obtained from:	OpenBSD
This commit is contained in:
Dag-Erling Smørgrav 2003-03-20 11:05:48 +00:00
parent cc34e37e5b
commit b5bd3dd547

View File

@ -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)