From 47a8db7b9f87ac05ce1ed8a35464effa1d03a22a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 29 Dec 1997 15:37:24 +0000 Subject: [PATCH] (pop_updt): lseek before ftruncating the file. From git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4247 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/pop_updt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/appl/popper/pop_updt.c b/appl/popper/pop_updt.c index 526948867..b2decd887 100644 --- a/appl/popper/pop_updt.c +++ b/appl/popper/pop_updt.c @@ -86,6 +86,7 @@ pop_updt (POP *p) } rewind(md); + lseek(mfd,0,SEEK_SET); ftruncate(mfd,0) ; /* Synch stdio and the kernel for the POP drop */