Mercurial > pidgin
comparison src/util.c @ 963:c1fb7afe4fd7
[gaim-migrate @ 973]
no real change, just got rid of 2 fixme's. logs will now be stored in ~/.gaim/logs. if you wish to
save old logs then you should move them into ~/.gaim/logs before you use the new gaim.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 10 Oct 2000 09:14:26 +0000 |
| parents | fa681641643d |
| children | 17ff662183b2 |
comparison
equal
deleted
inserted
replaced
| 962:e006338ce34e | 963:c1fb7afe4fd7 |
|---|---|
| 379 return NULL; | 379 return NULL; |
| 380 } | 380 } |
| 381 } else | 381 } else |
| 382 fclose(fd); | 382 fclose(fd); |
| 383 | 383 |
| 384 /* FIXME: we need to figure out which directory to log things to. for now, it's just going | |
| 385 * to have to be ~/.gaim/logs :-P */ | |
| 386 g_snprintf(log_all_file, 256, "%s/.gaim/logs", getenv("HOME")); | 384 g_snprintf(log_all_file, 256, "%s/.gaim/logs", getenv("HOME")); |
| 387 | 385 |
| 388 if (stat(log_all_file, &st) < 0) | 386 if (stat(log_all_file, &st) < 0) |
| 389 flag = 1; | 387 flag = 1; |
| 390 if (!S_ISDIR(st.st_mode)) | 388 if (!S_ISDIR(st.st_mode)) |
| 402 } | 400 } |
| 403 } else | 401 } else |
| 404 fclose(fd); | 402 fclose(fd); |
| 405 | 403 |
| 406 | 404 |
| 407 /* same FIXME as above; need to find better dir than ~/.gaim/logs */ | |
| 408 g_snprintf(log_all_file, 256, "%s/.gaim/logs/%s.log", getenv("HOME"), normalize(name)); | 405 g_snprintf(log_all_file, 256, "%s/.gaim/logs/%s.log", getenv("HOME"), normalize(name)); |
| 409 | 406 |
| 410 if (stat(log_all_file, &st) < 0) | 407 if (stat(log_all_file, &st) < 0) |
| 411 flag = 1; | 408 flag = 1; |
| 412 | 409 |
