From a38b38006bb74c80cc982c23b4474b57275c99dc Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 12 Nov 2017 21:05:33 +0000 Subject: [PATCH] remount: parse the fstab allowing for tab as well as space --- Applications/util/remount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/util/remount.c b/Applications/util/remount.c index ed7ff008..9a9ad3c9 100644 --- a/Applications/util/remount.c +++ b/Applications/util/remount.c @@ -16,8 +16,8 @@ char *getdev(char *arg) f = fopen("/etc/mtab", "r"); if (f) { while (fgets(tmp, sizeof(tmp), f)) { - dev = strtok(tmp, " "); - mntpt = strtok(NULL, " "); + dev = strtok(tmp, " \t"); + mntpt = strtok(NULL, " \t"); if ((strcmp(dev, arg) == 0) || (strcmp(mntpt, arg) == 0)) { fclose(f); return strdup(dev); -- 2.34.1