--- sargasso2/sargasso.c 2006/09/30 21:35:19 79 +++ sargasso2/sargasso.c 2006/11/26 16:57:32 81 @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -26,6 +27,7 @@ #define FEEDS_WRITE ".Sargasso.Feeds" #define CHOICES_READ "Choices:Sargasso.Choices" #define CHOICES_WRITE ".Sargasso.Choices" +#define WRITE_DIR ".Sargasso" typedef void (*click_callback)(unsigned int i); @@ -140,6 +142,7 @@ if (stat(FEEDS_READ, &s)) { warn("Welcome to Sargasso! A selection of feeds have been " "added. To add more feeds, use the main menu."); + mkdir(WRITE_DIR, S_IRWXU); for (unsigned int i = 0; i != sizeof default_feeds / sizeof default_feeds[0]; i++) feed_add(default_feeds[i]);