about summary refs log tree commit diff
path: root/src/linux/mntent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/mntent.c')
-rw-r--r--src/linux/mntent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/mntent.c b/src/linux/mntent.c
index f1516252..3eafba5e 100644
--- a/src/linux/mntent.c
+++ b/src/linux/mntent.c
@@ -25,8 +25,7 @@ struct mntent *getmntent_r(FILE *f, struct mntent *mnt, char *linebuf, int bufle
 		fgets(linebuf, buflen, f);
 		if (feof(f) || ferror(f)) return 0;
 		if (!strchr(linebuf, '\n')) {
-			if (fseeko(f, -(off_t)strlen(linebuf), SEEK_CUR))
-				fscanf(f, "%*[^\n]%*[\n]");
+			fscanf(f, "%*[^\n]%*[\n]");
 			errno = ERANGE;
 			return 0;
 		}