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    [W:0.143 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site