r21765: Fix the build for HP-UX.
authorJames Peach <jpeach@samba.org>
Thu, 8 Mar 2007 18:45:44 +0000 (18:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:29 +0000 (12:18 -0500)
source/smbd/trans2.c

index 441a798f2773a63e179de703ffda1e94c3a2da42..45eb0067ef69d9481cac0207abf03452a1fb1855 100644 (file)
@@ -3038,9 +3038,14 @@ static const struct {unsigned stat_fflag; unsigned smb_fflag;}
 #endif
 
 #ifdef UF_HIDDEN
-    { UF_HIDDEN, EXT_HIDDEN }
+    { UF_HIDDEN, EXT_HIDDEN },
 #endif
 
+    /* Do not remove. We need to guarantee that this array has at least one
+     * entry to build on HP-UX.
+     */
+    { 0, 0 }
+
 };
 
 static void map_info2_flags_from_sbuf(const SMB_STRUCT_STAT *psbuf,