Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: your mail

On Sat, Jun 23, 2012 at 07:27:41PM +0200, Martin Husemann wrote:
> Christos' fix affects only the (very late) part where /etc/fstab is output
> for the new setup. There must be something else way earlier.

It dies imediately when tryign to modify a const pointer to the default value
in this:

struct f_arg {
        const char *name;
        const char *dflt;
        char *var;
        int size;
static const struct f_arg fflagopts[] = {
        {"cd dev", 0, cdrom_dev, sizeof cdrom_dev}, /* default filled in init */

Unconsting the pointer - which can't help here, since gcc properly placed the
whole array in const readonly memory.


Home | Main Index | Thread Index | Old Index