Comment 7 for bug 615382

Revision history for this message
Bruno Diaz (brunodiaz-cpan) wrote :

Problem located in line 2911 of growisofs.c, code around:

    if (*argv[0] == '-')
    { int fd;
      struct stat fdst;
      unsigned int cap2k=0;

 chdir ("/");
 if (argc < 3) exit (EINVAL);
 fd=atoi (argv[1]);
 if (!strcmp(argv[0],"-umount"))
 { if (fumount (fd)) exit (errno);
     exit (0);
 }
 else if ( (!strcmp(argv[0],"-reload") && (no_reload=0,1)) ||
    (!strcmp(argv[0],"-eject") && (no_reload=-1,1)) )
 { if (fstat (fd,&fdst) < 0)
  perror (":-( unable to fstat"), exit (1);

     if (argc > 3) cap2k = (unsigned int)strtoul (argv[3],NULL,0);

     close (fd);

     if (media_reload (argv[2],&fdst,cap2k))
  perror (":-( unable to reload tray"), exit (1);
     exit (0);
 }
 exit(1);
    }
¿Any ideas for a patch?
This is nasty, all my backups are broken until this bug is solved...