diff options
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cvs/src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c index ba22664940d..0150771262c 100644 --- a/gnu/usr.bin/cvs/src/main.c +++ b/gnu/usr.bin/cvs/src/main.c @@ -871,7 +871,10 @@ parseopts() if (!strncmp(buf, "tag=", 4)) { char *RCS_citag = strdup(buf+4); - setenv("RCSLOCALID", RCS_citag, 1); + char *what = malloc(sizeof("RCSLOCALID")+1+strlen(RCS_citag)); + + sprintf(what, "RCSLOCALID=%s", RCS_citag); + putenv(what); } else if (!strncmp(buf, "umask=", 6)) { mode_t mode; |