Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 186450 | Differences between
and this patch

Collapse All | Expand All

(-)trunk~/saslauthd/saslauthd-main.c (-2 / +2 lines)
Lines 276-282 Link Here
276
		exit(1);
276
		exit(1);
277
	}
277
	}
278
278
279
	umask(077);
279
	umask(0077);
280
280
281
	pid_file_size = strlen(run_path) + sizeof(PID_FILE_LOCK) + 1;
281
	pid_file_size = strlen(run_path) + sizeof(PID_FILE_LOCK) + 1;
282
	if ((pid_file_lock = malloc(pid_file_size)) == NULL) {
282
	if ((pid_file_lock = malloc(pid_file_size)) == NULL) {
Lines 287-293 Link Here
287
	strlcpy(pid_file_lock, run_path, pid_file_size);
287
	strlcpy(pid_file_lock, run_path, pid_file_size);
288
	strlcat(pid_file_lock, PID_FILE_LOCK, pid_file_size);
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
		rc = errno;
291
		rc = errno;
292
		logger(L_ERR, L_FUNC, "could not open pid lock file: %s", pid_file_lock);
292
		logger(L_ERR, L_FUNC, "could not open pid lock file: %s", pid_file_lock);
293
		logger(L_ERR, L_FUNC, "open: %s", strerror(rc));
293
		logger(L_ERR, L_FUNC, "open: %s", strerror(rc));

Return to bug 186450