Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2005 15:30:27 GMT
From:      Dean Strik <dean@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/81555: Cron exits from SIGPIPE after crontab -e when using NSS-LDAP
Message-ID:  <200506121530.j5CFUR4G043304@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/81555; it has been noted by GNATS.

From: Dean Strik <dean@stack.nl>
To: Dick Davies <rasputnik@hellooperator.net>
Cc: bug-followup@FreeBSD.org, dean@stack.nl
Subject: Re: bin/81555: Cron exits from SIGPIPE after crontab -e when using NSS-LDAP
Date: Sun, 12 Jun 2005 17:24:59 +0200

 --cWoXeonUoKmBZSoM
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Dick Davies wrote:
 > This also appears to be an issue with non-ldap users on 5.4, providing the system 
 > has some nss_ldap accounts. I'm not sure whether it's because my initial (ssh) login
 > was nss_ldap based.
 
 Actually it must've been because of your ssh login was nss-ldap based.
 You can verify this by restarting sshd after putting your account in
 /etc/passwd to test.
 
 By the way, simply ignoring the SIGPIPE works well for me. Trivial patch
 attached.
 
 Cheers,
 Dean
 
 -- 
 Dean C. Strik             Eindhoven University of Technology
 dean@stack.nl  |  dean@ipnet6.org  |  http://www.ipnet6.org/
 "This isn't right. This isn't even wrong." -- Wolfgang Pauli
 
 --cWoXeonUoKmBZSoM
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="cron.c.patch"
 
 --- usr.sbin/cron/cron/cron.c	Sun Jun 12 17:18:18 2005
 +++ usr.sbin/cron/cron/cron.c	Sun Jun 12 17:18:36 2005
 @@ -80,6 +80,7 @@
  
  	parse_args(argc, argv);
  
 +	(void) signal(SIGPIPE, SIG_IGN);
  #ifdef USE_SIGCHLD
  	(void) signal(SIGCHLD, sigchld_handler);
  #else
 
 --cWoXeonUoKmBZSoM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506121530.j5CFUR4G043304>