(scrub_file): do the second seek correctly.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8255 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-05-16 00:02:32 +00:00
parent 7f615f7f6b
commit d2d8614e57

View File

@@ -96,8 +96,7 @@ scrub_file (int fd)
pos = lseek(fd, 0, SEEK_END);
if (pos < 0)
return errno;
pos = lseek(fd, 0, SEEK_SET);
if (pos < 0)
if (lseek(fd, 0, SEEK_SET) < 0)
return errno;
memset(buf, 0, sizeof(buf));
while(pos > 0) {