nfs-utils 6 of 10 - Fixed subscripting problem in idmapd
Subsystems (2)
PATCH 1/1 nfs-utils 6 of 10 - Fixed subscripting problem in idmapd
Fixed subscripting problem in idmapd (bz 158188)
This fixes the following problem:
rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
Details can be found in:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
Signed-off-by Steve Dickson <[email protected]>
---------
utils/idmapd/idmapd.c renamed from utils/idmapd/idmapd.c.orig +4 -4
@@ -92,8 +92,8 @@ (w) = p; \ } while (0) -#define IC_IDNAME 1 -#define IC_NAMEID 2 +#define IC_IDNAME 0 +#define IC_NAMEID 1struct idmap_client {int ic_fd;int ic_dirfd;
@@ -590,8 +590,8 @@ nfsdreopen()static int nfsdopen (char *path) { -return ((nfsdopenone (&nfsd_ic[0 ],IC_NAMEID , path) ==0 && -nfsdopenone (&nfsd_ic[1 ],IC_IDNAME , path) ==0 ) ?0 :-1 ); +return ((nfsdopenone (&nfsd_ic[IC_NAMEID ],IC_NAMEID , path) ==0 && +nfsdopenone (&nfsd_ic[IC_IDNAME ],IC_IDNAME , path) ==0 ) ?0 :-1 ); } static int