X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/9d46993603f670e24136e694226c85c88be69dee..ad7871609881e73855d0b04da49b486cd93efca7:/usr/src/usr.bin/uucp/libuu/gename.c diff --git a/usr/src/usr.bin/uucp/libuu/gename.c b/usr/src/usr.bin/uucp/libuu/gename.c index d4d26248a3..a370e6bafd 100644 --- a/usr/src/usr.bin/uucp/libuu/gename.c +++ b/usr/src/usr.bin/uucp/libuu/gename.c @@ -1,6 +1,15 @@ +/*- + * Copyright (c) 1985, 1993 + * The Regents of the University of California. All rights reserved. + * + * This module is believed to contain source code proprietary to AT&T. + * Use and redistribution is subject to the Berkeley Software License + * Agreement and your Software Agreement with AT&T (Western Electric). + */ + #ifndef lint -static char sccsid[] = "@(#)gename.c 5.6 (Berkeley) %G%"; -#endif +static char sccsid[] = "@(#)gename.c 8.1 (Berkeley) 6/6/93"; +#endif /* not lint */ #include "uucp.h" @@ -61,10 +70,9 @@ char pre, *sys, grade, *file; } snum[SEQLEN-1] = alphabet[0]; } else { - extern int errno; + syslog(LOG_WARNING, "open(%s) failed: %m", SEQFILE); fd = creat(SEQFILE, 0666); getrandseq: srand((int)time((time_t *)0)); - assert(SEQFILE, "is missing or trashed\n", errno); for (i = 0; i < SEQLEN; i++) snum[i] = alphabet[rand() % (sizeof alphabet - 1)]; snum[SEQLEN-1] = alphabet[0];