Re: True story: "gconfig" removed root folder...

From: Muli Ben-Yehuda
Date: Sun Jan 18 2004 - 09:34:00 EST


On Sun, Jan 18, 2004 at 03:21:48PM +0100, Romain Lievin wrote:

> - if (conf_write(fn))
> - text_insert_msg("Error", "Unable to save configuration !");
> + /* protect against 'root directory' bug */
> + trailing = fn[strlen (fn)-1];
> + stat (fn, &sb);

What if stat() fails?

Cheers,
Muli
--
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

"the nucleus of linux oscillates my world" - gccbot@#offtopic

Attachment: signature.asc
Description: Digital signature