=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/co.c,v retrieving revision 1.83 retrieving revision 1.84 diff -c -r1.83 -r1.84 *** src/usr.bin/rcs/co.c 2006/04/24 08:10:41 1.83 --- src/usr.bin/rcs/co.c 2006/04/25 13:36:35 1.84 *************** *** 1,4 **** ! /* $OpenBSD: co.c,v 1.83 2006/04/24 08:10:41 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: co.c,v 1.84 2006/04/25 13:36:35 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. *************** *** 119,125 **** /* if no argument, assume current user */ if (rcs_optarg == NULL) { if ((author = getlogin()) == NULL) ! fatal("getlogin failed"); } else { author = xstrdup(rcs_optarg); warg = 1; --- 119,125 ---- /* if no argument, assume current user */ if (rcs_optarg == NULL) { if ((author = getlogin()) == NULL) ! err(1, "getlogin"); } else { author = xstrdup(rcs_optarg); warg = 1; *************** *** 149,155 **** } if ((username = getlogin()) == NULL) ! fatal("getlogin failed"); for (i = 0; i < argc; i++) { if (rcs_statfile(argv[i], fpath, sizeof(fpath), flags) < 0) --- 149,155 ---- } if ((username = getlogin()) == NULL) ! err(1, "getlogin"); for (i = 0; i < argc; i++) { if (rcs_statfile(argv[i], fpath, sizeof(fpath), flags) < 0) *************** *** 174,186 **** if (rev_str != NULL) { if ((rev = rcs_getrevnum(rev_str, file)) == NULL) ! fatal("invalid revision: %s", rev_str); } else { /* no revisions in RCS file, generate empty 0.0 */ if (file->rf_ndelta == 0) { rev = rcsnum_parse("0.0"); if (rev == NULL) ! fatal("failed to generate rev 0.0"); } else { rev = rcsnum_alloc(); rcsnum_cpy(file->rf_head, rev, 0); --- 174,186 ---- if (rev_str != NULL) { if ((rev = rcs_getrevnum(rev_str, file)) == NULL) ! errx(1, "invalid revision: %s", rev_str); } else { /* no revisions in RCS file, generate empty 0.0 */ if (file->rf_ndelta == 0) { rev = rcsnum_parse("0.0"); if (rev == NULL) ! errx(1, "failed to generate rev 0.0"); } else { rev = rcsnum_alloc(); rcsnum_cpy(file->rf_head, rev, 0); *************** *** 365,371 **** * File inherits permissions from its ,v file */ if (stat(file->rf_path, &st) == -1) ! fatal("could not stat rcsfile"); mode = st.st_mode; --- 365,371 ---- * File inherits permissions from its ,v file */ if (stat(file->rf_path, &st) == -1) ! err(1, "%s", file->rf_path); mode = st.st_mode;