Dr. Werner Fink 2011-02-09 08:17:20 +00:00 committed by Git OBS Bridge
parent ff7819056d
commit 668ec0aa37

View File

@ -553,8 +553,8 @@
+ mntinfo_t *mnt = list_entry(ptr, mntinfo_t);
+ if (nlen < mnt->nlen)
+ continue;
+ if (mnt->nlen > 1 && use[mnt->nlen] != '\0' && use[mnt->nlen] != '/')
+ continue;
+ if (mnt->nlen == 1) /* root fs is the last entry */
+ return mnt->dev;
+ if (strncmp(use, mnt->mpoint, mnt->nlen) == 0)
+ return mnt->dev;
+ }