On Fri, Nov 10, 2006 at 08:50:53PM -0200, Nelson A. de Oliveira wrote:
> Hi Gerrit!
> 
> On 11/10/06, Gerrit Pape <[EMAIL PROTECTED]> wrote:
> >unfortunately I cannot teproduce the problem.  On a current sid system,
> >your inittab entry works just fine for me.  Did you change anything
> >special on your system, such as security patches to the kernel, extended
> >access permissions/restrictions or similar?
> 
> The Kernel... the only thing that I change here is the Kernel. And
> booting with Debian's Kernel fgetty works without problem. The guilty
> is my 2.6.18-mm1 Kernel! :-)

Hi Nelson, thanks for checking this.

> The strange thing is that mingetty works here (and fgetty is derivated
> from mingetty). But anyway, you can close this bug.

mingetty has a workaround for readonly /dev filesystems, maybe that's
the problem you have.  Could you try the attached patch?, I would apply
a similar workaround if it works for you:

 $ apt-get source fgetty
 ...
 $ cd fgetty-0.6/
 $ patch -p0 </the/attached/patch
 patching file fgetty.c
 $ debchange -pv0.6-3.1 'try out patch'
 $ dpkg-buildpackage -b -rfakeroot -uc -us
 ...
 # dpkg -i ../fgetty_0.6-3.1_*.deb
 ...
 # 

Regards, Gerrit.
? a.out
? test.c
Index: fgetty.c
===================================================================
RCS file: /cvs/fgetty/fgetty.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 fgetty.c
--- fgetty.c    16 Feb 2004 10:07:55 -0000      1.1.1.1
+++ fgetty.c    13 Nov 2006 14:11:40 -0000
@@ -76,8 +76,12 @@
 void open_tty() {
   struct sigaction sa;
   int fd;
-  if (chown(tty,0,0) || chmod(tty,0600))
-    error("could not chown/chmod tty device\n",1);
+  if (chown(tty,0,0) || chmod(tty,0600)) {
+    if (errno==EROFS)
+      write(2,"fgetty: warning: could not change owner/permissions of tty: 
readonly filesystem\n",80);
+    else
+      error("could not chown/chmod tty device\n",1);
+  }
   sa.sa_handler=SIG_IGN;
   sa.sa_flags=0;
   sigemptyset(&sa.sa_mask);

Reply via email to