Whamcloud - gitweb
LU-12511 utils: fix regression for UAPI headers for native client
[fs/lustre-release.git] / lustre / utils / gss / lsupport.c
index e93c4e9..7bc291b 100644 (file)
@@ -27,7 +27,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  */
 
 #ifndef _GNU_SOURCE
@@ -69,9 +68,9 @@
 
 const char * lustre_svc_name[] =
 {
-        [LUSTRE_GSS_SVC_MGS]    = "MGS",
-        [LUSTRE_GSS_SVC_MDS]    = "MDS",
-        [LUSTRE_GSS_SVC_OSS]    = "OSS",
+       [LUSTRE_GSS_SVC_MGS]    = "MGS",
+       [LUSTRE_GSS_SVC_MDS]    = "MDS",
+       [LUSTRE_GSS_SVC_OSS]    = "OSS",
 };
 
 /****************************************
@@ -246,6 +245,7 @@ int external_nid2hostname(char *lnd, uint32_t net, uint32_t addr,
         head = fgets(buf, bufsize, fghn);
         if (head == NULL) {
                 printerr(0, "can't read from %s\n", gethostname_ex);
+               pclose(fghn);
                 return -1;
         }
         if (pclose(fghn) == -1)