~clint-fewbar/+junk/cyrus-sasl2-builddeb

« back to all changes in this revision

Viewing changes to saslauthd/saslauthd-main.c

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2011-03-16 22:42:49 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110316224249-jnzehmjy5hqpapu2
Tags: 2.1.23.dfsg1-8
* Eliminate getsubopt conflict when building with glibc 2.2, thanks to
  Colin Watson for the patch (Closes: #588528)
* Convert package from using dpatch to using quilt
* debian/sasl2-bin.saslauthd.init: Properly handle $(OPTIONS) missing from
  defaults file (Closes: #515534)
* Bump Standards-Version to 3.9.1 (no changes)
* cyrus-sasl2-dbg: Demote dependency on cyrus-sasl2-{mit,heimdal}-dbg to
  a recommendation (Closes: #607558)
* Enable hardening features (Closes: #542725)
* Fix FTBFS, add $(SASL_DB_LIB) as dependency to libsasldb, and use it.
  Thanks to Matthias Klose for the patch (Closes: #609237)
* Drop gratuitous dependency on krb5support (Closes: #528238)
* Ship docs on testing with sasl-sample-{client,server} (Closes: #516542)
* Allow getting saslauthd status with '/etc/init.d/saslauthd status'.
  Thanks to Raoul Bhatia for the patch (Closes: #589181)
* Fix documentation on saslauthd runtime directory perms (Closes: #528554)
* Add Danish translation, thanks to Joe Dalton.  (Closes: #585553)
* Change to machine readable copyright file (Closes: 470948)
* Improve documentation on location of socket directory based on whether
  Postfix runs inside or outside a chroot, thanks to Walter Rohrer for the
  suggestion.  (Closes: #528553)
* Start shipping gen-auth (Closes: #459624)
* Switch to dpkg-source 3.0 (quilt) format.
* Drop Conflicts/Replaces for pre-Lenny and pre-Sarge versions of packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
                exit(1);
277
277
        }
278
278
 
279
 
        umask(077);
 
279
        umask(0077);
280
280
 
281
281
        pid_file_size = strlen(run_path) + sizeof(PID_FILE_LOCK) + 1;
282
282
        if ((pid_file_lock = malloc(pid_file_size)) == NULL) {
287
287
        strlcpy(pid_file_lock, run_path, pid_file_size);
288
288
        strlcat(pid_file_lock, PID_FILE_LOCK, pid_file_size);
289
289
 
290
 
        if ((pid_file_lock_fd = open(pid_file_lock, O_CREAT|O_TRUNC|O_RDWR, 644)) < 0) {
 
290
        if ((pid_file_lock_fd = open(pid_file_lock, O_CREAT|O_TRUNC|O_RDWR, 0644)) < 0) {
291
291
                rc = errno;
292
292
                logger(L_ERR, L_FUNC, "could not open pid lock file: %s", pid_file_lock);
293
293
                logger(L_ERR, L_FUNC, "open: %s", strerror(rc));