diff options
author | Dan Winship <danw@src.gnome.org> | 2001-06-19 02:16:55 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-06-19 02:16:55 +0800 |
commit | 22f88d18269c3d23efc3933cff971070dfa11aa1 (patch) | |
tree | 56df9c29489fcc2fc99757e1a5dd2e0fff895c5c /configure.in | |
parent | 3a4f16b681a4dbe89aebdecebf0e3174dccc4ffd (diff) | |
download | gsoc2013-evolution-22f88d18269c3d23efc3933cff971070dfa11aa1.tar.gz gsoc2013-evolution-22f88d18269c3d23efc3933cff971070dfa11aa1.tar.zst gsoc2013-evolution-22f88d18269c3d23efc3933cff971070dfa11aa1.zip |
Check the modes on $system_mail_dir and set up variables for
* configure.in: Check the modes on $system_mail_dir and set up
variables for camel/Makefile to make camel-lock-helper
setuid/setgid.
svn path=/trunk/; revision=10266
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 4b6fc7c2c8..d72df8b232 100644 --- a/configure.in +++ b/configure.in @@ -122,6 +122,39 @@ else fi AC_DEFINE_UNQUOTED(SYSTEM_MAIL_DIR, "$system_mail_dir") +case `ls -ld $system_mail_dir 2>&1 | awk '{print $1;}'` in +d??????rw?) + CAMEL_LOCK_HELPER_USER="" + CAMEL_LOCK_HELPER_GROUP="" + system_mail_perm="world writable" + ;; + +d???rw????) + CAMEL_LOCK_HELPER_USER="" + CAMEL_LOCK_HELPER_GROUP=`ls -ld $system_mail_dir 2>&1 | awk '{print $4;}'` + system_mail_perm="writable by group $CAMEL_LOCK_HELPER_GROUP" + ;; + +drw???????) + CAMEL_LOCK_HELPER_USER=`ls -ld $system_mail_dir 2>&1 | awk '{print $3;}'` + CAMEL_LOCK_HELPER_GROUP="" + system_mail_perm="writable by user $CAMEL_LOCK_HELPER_USER" + ;; + +*) + CAMEL_LOCK_HELPER_USER="" + CAMEL_LOCK_HELPER_GROUP="" + system_mail_perm="???" + ;; +esac + +AC_MSG_RESULT([$system_mail_dir, $system_mail_perm]) +AC_SUBST(CAMEL_LOCK_HELPER_USER) +AC_SUBST(CAMEL_LOCK_HELPER_GROUP) + +AM_CONDITIONAL(CAMEL_LOCK_HELPER_SETUID, test -n "$CAMEL_LOCK_HELPER_USER") +AM_CONDITIONAL(CAMEL_LOCK_HELPER_SETGID, test -n "$CAMEL_LOCK_HELPER_GROUP") + dnl * Time zone stuff AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone, AC_TRY_COMPILE([ @@ -1070,7 +1103,7 @@ echo " fi echo " - Mail Directory: $system_mail_dir + Mail Directory: $system_mail_dir, $system_mail_perm LDAP support: $msg_ldap NNTP support: $msg_nntp Pilot conduits: $msg_pilot |