lkml.org 
[lkml]   [2004]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: True story: "gconfig" removed root folder...
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

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:00    [from the cache]
©2003-2011 Jasper Spaans