X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Flinux%2Fmntent.c;h=3eafba5e0b387ce98e0aefde2bbdaf8288757af9;hp=f151625285c36e6e92dcd2667c18beb3430a6478;hb=ede5ae7b0bb5a7ed9edeb2eeb8e24d30af64d185;hpb=9cee9307e3b8ed31e772d564d1dc53e6d888acba 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; }