[dovecot-cvs] dovecot/src/lib mountpoint.c,1.2,1.3
cras at dovecot.org
cras at dovecot.org
Fri Apr 14 14:26:39 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv8909/lib
Modified Files:
mountpoint.c
Log Message:
mtab path is /etc/mnttab with Solaris
Index: mountpoint.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mountpoint.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- mountpoint.c 14 Apr 2006 10:27:55 -0000 1.2
+++ mountpoint.c 14 Apr 2006 11:26:37 -0000 1.3
@@ -18,7 +18,11 @@
# define MOUNTPOINT_UNKNOWN
#endif
-#define MTAB_PATH "/etc/mtab"
+#ifdef HAVE_SYS_MNTTAB_H
+# define MTAB_PATH "/etc/mnttab" /* Solaris */
+#else
+# define MTAB_PATH "/etc/mtab" /* Linux */
+#endif
/* AIX doesn't have these defined */
#ifndef MNTTYPE_SWAP
More information about the dovecot-cvs
mailing list