> From: Trond Myklebust <Trond.Myklebust@netapp.com>Thanks, Trond. Is there any chance this patch could be included in the linux kernel in the near future? For now, I guess I'll workaround this problem by moving the ftruncate() to before setuid(). -luoqi PS: I haven't tried the patch, just browsing through, and I noticed a typo, pointing out here to save some trouble for anyone who wants to give it a try (I guess gcc would issue a warning too), /* Search for an existing open(O_WRITE) file */ - ctx = nfs_find_open_context(inode, cred, FMODE_WRITE); - if (ctx != NULL) - state = ctx->state; + if (sattr->ia_valid && ATTR_FILE) { <=== && should be & + ctx = nfs_file_open_context(sattr->ia_file); + if (ctx != NULL) + state = ctx->state; + } --
| Stephane Jourdois | Re: 2.6.21-rc4-mm1 [PATCH] init/missing_syscalls.h fix |
| David Brown | Re: Linux 2.6.21-rc2 |
| Andi Kleen | [PATCH] [1/12] x86: Work around mmio config space quirk on AMD Fam10h |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| David Miller | Re: [GIT]: Networking |
| David Woodhouse | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
git: | |
