-/* $OpenBSD: newsyslog.c,v 1.5 1996/08/31 14:20:36 deraadt Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.6 1996/09/02 18:47:16 tholo Exp $ */
/*
* This file contains changes from the Open Software Foundation.
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.5 1996/08/31 14:20:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.6 1996/09/02 18:47:16 tholo Exp $";
#endif /* not lint */
#ifndef CONF
char zfile1[128], zfile2[128];
int fd;
struct stat st;
+ int days = numdays;
#ifdef _IBMR2
/* AIX 3.1 has a broken fchown- if the owner_uid is -1, it will actually */
if (!noaction && !(flags & CE_BINARY))
(void) log_trim(log); /* Report the trimming to the old log */
- if (numdays == -1) {
+ if (days == 0) {
if (noaction)
printf("rm %s\n",log);
else