public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d290936
)
remount: parse the fstab allowing for tab as well as space
author
Alan Cox
<alan@linux.intel.com>
Sun, 12 Nov 2017 21:05:33 +0000
(21:05 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 12 Nov 2017 21:05:33 +0000
(21:05 +0000)
Applications/util/remount.c
patch
|
blob
|
history
diff --git
a/Applications/util/remount.c
b/Applications/util/remount.c
index
ed7ff00
..
9a9ad3c
100644
(file)
--- 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);