+2009-01-11 Erez Zadok <ezk@fsl.cs.sunysb.edu>
+
+ * amd/ops_udf.c: don't define functions/variables which may not be
+ used.
+
+ * amd/ops_tmpfs.c (mount_tmpfs): force gcc not to complain about
+ unused variables.
+
+ * config.guess.long: properly support Fedora Core.
+
2009-01-09 Christos Zoulas <christos@zoulas.com>
* Fix nfs mounts on linux 2.6.26 by explicitly initializing context.
-/* $NetBSD: ops_pcfs.c,v 1.1.1.1 2008/09/19 20:07:16 christos Exp $ */
-
/*
* Copyright (c) 1997-2007 Erez Zadok
* Copyright (c) 1990 Jan-Simon Pendry
#endif /* HAVE_FS_AUTOFS */
};
+#if defined(HAVE_UDF_ARGS_T_NOBODY_GID) || defined(HAVE_UDF_ARGS_T_NOBODY_UID)
static int
a_num(const char *s, const char *id_type)
{
}
return id;
}
+#endif /* defined(HAVE_UDF_ARGS_T_NOBODY_GID) || defined(HAVE_UDF_ARGS_T_NOBODY_UID) */
+#if defined(HAVE_UDF_ARGS_T_NOBODY_GID)
static gid_t
a_gid(const char *s, const char *id_type)
{
return gr->gr_gid;
return a_num(s, id_type);
}
+#endif /* defined(HAVE_UDF_ARGS_T_NOBODY_GID) */
+#if defined(HAVE_UDF_ARGS_T_NOBODY_UID)
static uid_t
a_uid(const char *s, const char *id_type)
{
return pw->pw_uid;
return a_num(s, id_type);
}
+#endif /* defined(HAVE_UDF_ARGS_T_NOBODY_UID) */
/*
* UDF needs remote filesystem.
mntent_t mnt;
int flags;
char *str;
+#if defined(HAVE_UDF_ARGS_T_NOBODY_UID) || defined(HAVE_UDF_ARGS_T_ANON_UID)
uid_t uid_nobody;
gid_t gid_nobody;
+#endif /* defined(HAVE_UDF_ARGS_T_NOBODY_UID) || defined(HAVE_UDF_ARGS_T_ANON_UID) */
+ /*
+ * Figure out the name of the file system type.
+ */
+ MTYPE_TYPE type = MOUNT_TYPE_UDF;
#if defined(HAVE_UDF_ARGS_T_NOBODY_UID) || defined(HAVE_UDF_ARGS_T_ANON_UID)
uid_nobody = a_uid("nobody", "user");
}
#endif /* defined(HAVE_UDF_ARGS_T_NOBODY_GID) || defined(HAVE_UDF_ARGS_T_ANON_GID) */
- /*
- * Figure out the name of the file system type.
- */
- MTYPE_TYPE type = MOUNT_TYPE_UDF;
-
+ str = NULL;
memset((voidp) &udf_args, 0, sizeof(udf_args)); /* Paranoid */
/*
long=`getver /etc/redhat-release`
if grep 'Red Hat Enterprise Linux' /etc/redhat-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-rhel${long}
- elif grep 'Fedora Core' /etc/redhat-release > /dev/null 2>&1 ; then
+ elif grep 'Fedora ' /etc/redhat-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-fc${long}
elif grep 'CentOS' /etc/redhat-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-centos${long}