=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/ci.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/rcs/ci.c 2005/10/17 15:33:12 1.41 --- src/usr.bin/rcs/ci.c 2005/10/17 22:04:54 1.42 *************** *** 1,4 **** ! /* $OpenBSD: ci.c,v 1.41 2005/10/17 15:33:12 joris Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: ci.c,v 1.42 2005/10/17 22:04:54 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. *************** *** 126,131 **** --- 126,141 ---- interactive = 0; cvs_printf("rcs_msg: %s\n", rcs_msg); break; + case 'N': + if ((symbol = strdup(rcs_optarg)) == NULL) { + cvs_log(LP_ERRNO, "out of memory"); + exit(1); + } + if (rcs_sym_check(symbol) != 1) { + cvs_log(LP_ERR, "invalid symbol `%s'", symbol); + exit(1); + } + break; case 'n': if ((symbol = strdup(rcs_optarg)) == NULL) { cvs_log(LP_ERRNO, "out of memory"); *************** *** 346,359 **** if ((ret = rcs_sym_add(file, symbol, newrev) == -1) && (rcs_errno == RCS_ERR_DUPENT)) { char tmp[16]; ! rcsnum_tostr(rcs_sym_getrev(file, symbol), tmp, sizeof(tmp)); ! cvs_log(LP_ERR, "symbolic name %s already bound to %s", symbol, tmp); status = 1; rcs_close(file); continue; } else if (ret == -1) { ! cvs_printf("problem adding symbol: %s\n", symbol); status = 1; rcs_close(file); continue; --- 356,372 ---- if ((ret = rcs_sym_add(file, symbol, newrev) == -1) && (rcs_errno == RCS_ERR_DUPENT)) { char tmp[16]; ! rcsnum_tostr(rcs_sym_getrev(file, symbol), ! tmp, sizeof(tmp)); ! cvs_log(LP_ERR, ! "symbolic name %s already bound to %s", symbol, tmp); status = 1; rcs_close(file); continue; } else if (ret == -1) { ! cvs_printf("problem adding symbol: %s\n", ! symbol); status = 1; rcs_close(file); continue;