(pop_updt): lseek before ftruncating the file. From
<map@stacken.kth.se> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4247 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user