diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-16 18:34:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-16 18:34:06 +0000 |
commit | a91fce241ec0acb77eeb44fdb6a2c82f6498e116 (patch) | |
tree | dd8db9eba39277a416b3d1e4fd0bdd76e983a4fb /usr.sbin/cron/crontab.c | |
parent | e77bb9ada09f611121a1f25212dba8df3db557b3 (diff) |
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)) { |