From 668ec0aa3717e0a860c927bd91ce2f6153d5c8a4 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 9 Feb 2011 08:17:20 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=31 --- psmisc-22.13-nfs4fuser.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/psmisc-22.13-nfs4fuser.patch b/psmisc-22.13-nfs4fuser.patch index d79d92a..bd3c12e 100644 --- a/psmisc-22.13-nfs4fuser.patch +++ b/psmisc-22.13-nfs4fuser.patch @@ -542,7 +542,7 @@ + use = &name[0]; + } + -+ if (*use != '/') { /* sepcial file (socket, pipe, inotify) */ ++ if (*use != '/') { /* sepcial file (socket, pipe, inotify) */ + struct stat st; + if (timeout(stat, path, &st, 5) != 0) + return (dev_t)-1; @@ -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; + }