diff options
author | 2004-09-16 18:34:05 +0000 | |
---|---|---|
committer | 2004-09-16 18:34:05 +0000 | |
commit | 69f3a5e2389a21a10c3974b4dc0febf17e888dac (patch) | |
tree | 01c6c586913f626787c5a4fab5a2b2bf90e54264 /usr.sbin/cron/crontab.c | |
parent | imsg type is really an enum imsg_type and not an int (diff) | |
download | wireguard-openbsd-69f3a5e2389a21a10c3974b4dc0febf17e888dac.tar.xz wireguard-openbsd-69f3a5e2389a21a10c3974b4dc0febf17e888dac.zip |
ftruncate() with ftello() instead of ftell(); ok millert
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index ba2b7688cdb..1d68908804e 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.45 2004/06/22 03:15:33 avsm Exp $ */ +/* $OpenBSD: crontab.c,v 1.46 2004/09/16 18:34:05 deraadt Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: crontab.c,v 1.45 2004/06/22 03:15:33 avsm Exp $"; +static char const rcsid[] = "$OpenBSD: crontab.c,v 1.46 2004/09/16 18:34:05 deraadt Exp $"; #endif /* crontab - install and manage per-user crontab files @@ -542,7 +542,7 @@ replace_cmd(void) { Set_LineNum(1) while (EOF != (ch = get_char(NewCrontab))) putc(ch, tmp); - ftruncate(fileno(tmp), ftell(tmp)); /* XXX redundant with "w+"? */ + ftruncate(fileno(tmp), ftello(tmp)); /* XXX redundant with "w+"? */ fflush(tmp); rewind(tmp); if (ferror(tmp)) { |