1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 18:46:15 +02:00
openwrt-xburst/package/nfs-server/patches/remove-warning.patch
nbd 1ddd3743de add libwrap, portmap, nfs-server
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@450 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-03-24 23:17:53 +00:00

31 lines
728 B
Diff

--- nfs-server-2.2beta47.old/auth_clnt.c 1999-11-10 10:18:06.000000000 +0100
+++ nfs-server-2.2beta47/auth_clnt.c 2005-03-24 23:44:16.000000000 +0100
@@ -238,19 +238,23 @@
/* First, set the user ID. */
if (auth_uid != cred_uid) {
- if (setfsuid(cred_uid) < 0)
+ if (setfsuid(cred_uid) < 0) {
+#if 0
Dprintf(L_ERROR, "Unable to setfsuid %d: %s\n",
cred_uid, strerror(errno));
- else
+#endif
+ } else
auth_uid = cred_uid;
}
/* Next, the group ID. */
if (auth_gid != cred_gid) {
- if (setfsgid(cred_gid) < 0)
+ if (setfsgid(cred_gid) < 0) {
+#if 0
Dprintf(L_ERROR, "Unable to setfsgid %d: %s\n",
cred_gid, strerror(errno));
- else
+#endif
+ } else
auth_gid = cred_gid;
}