.
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=31
This commit is contained in:
parent
cfba0bb43f
commit
eff3f58910
@ -542,7 +542,7 @@
|
|||||||
+ use = &name[0];
|
+ use = &name[0];
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (*use != '/') { /* sepcial file (socket, pipe, inotify) */
|
+ if (*use != '/') { /* sepcial file (socket, pipe, inotify) */
|
||||||
+ struct stat st;
|
+ struct stat st;
|
||||||
+ if (timeout(stat, path, &st, 5) != 0)
|
+ if (timeout(stat, path, &st, 5) != 0)
|
||||||
+ return (dev_t)-1;
|
+ return (dev_t)-1;
|
||||||
@ -553,8 +553,8 @@
|
|||||||
+ mntinfo_t *mnt = list_entry(ptr, mntinfo_t);
|
+ mntinfo_t *mnt = list_entry(ptr, mntinfo_t);
|
||||||
+ if (nlen < mnt->nlen)
|
+ if (nlen < mnt->nlen)
|
||||||
+ continue;
|
+ continue;
|
||||||
+ if (mnt->nlen > 1 && use[mnt->nlen] != '\0' && use[mnt->nlen] != '/')
|
+ if (mnt->nlen == 1) /* root fs is the last entry */
|
||||||
+ continue;
|
+ return mnt->dev;
|
||||||
+ if (strncmp(use, mnt->mpoint, mnt->nlen) == 0)
|
+ if (strncmp(use, mnt->mpoint, mnt->nlen) == 0)
|
||||||
+ return mnt->dev;
|
+ return mnt->dev;
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user