#18 Cygwin Compatibility

closed-fixed
None
5
2005-09-02
2005-09-01
Anonymous
No

Aide 0.10 produces an empty db file under cygwin.

Submitted by bdarrah@corp.untd.com

Discussion

  • Byron Darrah
    Byron Darrah
    2005-09-01

    Logged In: YES
    user_id=1338603

    Here's a small patch for this issue.

    diff -Naur aide-0.10-old/src/db_disk.c aide-0.10-
    new/src/db_disk.c
    --- aide-0.10-old/src/db_disk.c 2003-11-04
    07:13:07.000000000 -0800
    +++ aide-0.10-new/src/db_disk.c 2005-08-31
    20:57:15.186021900 -0700
    @@ -81,7 +81,8 @@
    #ifdef HAVE_READDIR
    if (dirh!=NULL) {
    entp=AIDE_READDIR_FUNC(dirh);
    - td=telldir(dirh);
    + if(entp!=NULL)td=telldir(dirh);
    + else td=-1;
    }
    #endif
    #endif
    @@ -93,7 +94,7 @@
    return (dirh!=NULL&&rdres==0&&(*resp)!=NULL);
    #else
    #ifdef HAVE_READDIR
    - return entp!=NULL&&td!=telldir(dirh);
    + return entp!=NULL&&td>=0;
    #endif
    #endif
    }

     
    • assigned_to: nobody --> rvdb
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=330646

    Please test the CVS version.

     
  • Logged In: YES
    user_id=330646

    The attached patch has been committed to CVS.

     
  • Byron Darrah
    Byron Darrah
    2005-09-03

    Logged In: YES
    user_id=1338603

    Tested CVS version on Linux and Cygwin. Looks okay.