=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/newsyslog/newsyslog.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/newsyslog/newsyslog.c 1996/07/22 10:09:17 1.4 --- src/usr.bin/newsyslog/newsyslog.c 1996/08/31 14:20:36 1.5 *************** *** 1,4 **** ! /* $OpenBSD: newsyslog.c,v 1.4 1996/07/22 10:09:17 deraadt Exp $ */ /* * This file contains changes from the Open Software Foundation. --- 1,4 ---- ! /* $OpenBSD: newsyslog.c,v 1.5 1996/08/31 14:20:36 deraadt Exp $ */ /* * This file contains changes from the Open Software Foundation. *************** *** 29,35 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.4 1996/07/22 10:09:17 deraadt Exp $"; #endif /* not lint */ #ifndef CONF --- 29,35 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.5 1996/08/31 14:20:36 deraadt Exp $"; #endif /* not lint */ #ifndef CONF *************** *** 427,436 **** if (!noaction && !(flags & CE_BINARY)) (void) log_trim(log); /* Report the trimming to the old log */ ! if (noaction) ! printf("mv %s to %s\n",log,file1); ! else ! (void) rename(log,file1); if (noaction) printf("Start new log..."); else { --- 427,444 ---- if (!noaction && !(flags & CE_BINARY)) (void) log_trim(log); /* Report the trimming to the old log */ ! if (numdays == -1) { ! if (noaction) ! printf("rm %s\n",log); ! else ! (void) unlink(log); ! } else { ! if (noaction) ! printf("mv %s to %s\n",log,file1); ! else ! (void) rename(log,file1); ! } ! if (noaction) printf("Start new log..."); else {