Subject: Re: pkg/32835: rc.d/estd doesn't have the 'x' bit set
To: None <gnats-bugs@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-bugs
Date: 02/14/2006 16:23:12
In message <20060214211505.0943963B879@narn.netbsd.org>, "Jeremy C. Reed" write
s:
>The following reply was made to PR pkg/32835; it has been noted by GNATS.
>
>From: "Jeremy C. Reed" <reed@reedmedia.net>
>To: gnats-bugs@netbsd.org
>Cc: 
>Subject: Re: pkg/32835: rc.d/estd doesn't have the 'x' bit set
>Date: Tue, 14 Feb 2006 13:11:58 -0800 (PST)
>
> > > 	The bypass is to change the modes manually, of course.  I'm not
> > > 	sure where estd.sh is actually copied to rc.d -- in the pkgsrc
> > > 	structure? -- so I can't fix it, but it's invoking 'install'
> > > 	with the wrong -m option.
> 
> Ignore my earlier comments.
> 
> mk/install/files does not use install, but uses cp and then chmod.
> 
> I just tested by doing:
> 
>  make PKG_RCD_SCRIPTS=yes install
> 
> Everything appeared to be correct.
> 
> rainier:/usr/pkgsrc/sysutils/estd$ ls -l /etc/rc.d/estd
> -rwxr-xr-x  1 root  wheel  322 Feb 14 13:08 /etc/rc.d/estd
> rainier:/usr/pkgsrc/sysutils/estd$ ls -l /usr/pkg/share/examples/rc.d/estd 
> -rw-r--r--  1 root  wheel  322 Feb 14 13:08 /usr/pkg/share/examples/rc.d/estd
> 
> Have a look at your work/.install-files file to see if you can notice 
> anything. Mine has 
> # FILE: /etc/rc.d/estd cr share/examples/rc.d/estd 0755
> near the bottom.

It has that near the bottom, but a 'make install' shows

===> Installing for estd-0.4nb1
install -d -o root -g wheel -m 0755 /usr/pkg/sbin
install -s -o root -g wheel -m 0755 estd /usr/pkg/sbin/estd
install -d -o root -g wheel -m 0755 /usr/pkg/man/man1
install -o root -g wheel -m 0644 estd.1 /usr/pkg/man/man1/estd.1
install -o root -g wheel -m 0644 estd.sh /usr/pkg/share/examples/rc.d/estd
===> [Automatic manual page handling]
===> Registering installation for estd-0.4nb1

and

# ls -l /usr/pkg/share/examples/rc.d/estd
-rw-r--r--  1 root  wheel  322 Feb 14 16:21 /usr/pkg/share/examples/rc.d/estd


		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb