Hi,
When invoked from usermap.c (as is done in function open_volume) the value of the flags parameter seen by the implementation in security.c will be undefined for any architecture with sizeof(unsigned long)!=sizeof(int). The declarations in line 171 and 186 need to be amended to fix this.
Yes, I'm afraid. Patch attached. Jean-Pierre
--- src/usermap.c.ref 2014-05-24 18:59:35.000000000 +0200 +++ src/usermap.c 2014-05-27 18:23:47.458384600 +0200 @@ -172,7 +172,7 @@ BOOL ntfs_read_directory(void *scapi, const char *path, dircallback callback, void *context); void *ntfs_initialize_file_security(const char *device, - int flags); + unsigned long flags); BOOL ntfs_leave_file_security(void *scapi); #else @@ -187,7 +187,7 @@ BOOL (*ntfs_read_directory)(void *scapi, const char *path, dircallback callback, void *context); void *(*ntfs_initialize_file_security)(const char *device, - int flags); + unsigned long flags); BOOL (*ntfs_leave_file_security)(void *scapi); #endif

