Changeset 1099:472aee12ade2 for buffy.c

Show
Ignore:
Timestamp:
1999-07-19 03:49:21 (9 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Consider empty folders to be non-existent for buffy's purposes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r905 r1099  
    4242#ifdef BUFFY_SIZE 
    4343 
    44 /* Find the last message in the file. * upon success return 0. * If no 
    45  * message found - return -1 */ 
     44/* Find the last message in the file.  
     45 * upon success return 0. If no message found - return -1 */ 
     46 
    4647int fseek_last_message (FILE * f) 
    4748{ 
     
    258259    else 
    259260#endif 
    260     if (stat (tmp->path, &sb) != 0 || 
     261    if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 || 
    261262        (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0)) 
    262263    {