]> Pileus Git - ~andy/gtk/commitdiff
Use lstat() to tell when an rc file was modified, not stat(), because we
authorElliot Lee <sopwith@src.gnome.org>
Tue, 12 May 1998 22:11:56 +0000 (22:11 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Tue, 12 May 1998 22:11:56 +0000 (22:11 +0000)
Use lstat() to tell when an rc file was modified, not stat(), because we
could be pointing symlinks around.

gtk/gtkrc.c

index a929e99351e007a4d37b55c50a29b0b3bed80bd6..749e2c3fa6a17719c9d40961bf04af6f413d6a8f 100644 (file)
@@ -413,7 +413,7 @@ gtk_rc_reparse_all (void)
     {
       rc_file = tmp_list->data;
       
-      if (!stat (rc_file->name, &statbuf) && 
+      if (!lstat (rc_file->name, &statbuf) && 
          (statbuf.st_mtime > rc_file->mtime))
        {
          mtime_modified = TRUE;