Hi Jean-Pierre,

thanks again.

Am 11.02.2016 um 08:25 schrieb Jean-Pierre André:
Much thanks for the testing. I should have introduced a bug.
How can I run the self-testing my self. I see some conditional test
code, but I don't find any hint, how to use it.

Define the macro SELFTEST

I guess, you mean? :

#define SELFTESTS 1 /* include code for self-testing */

But this doesn't help, as there is always:

#if SELFTESTS & !USESTUBS

But USESTUBS is also set with:

#ifdef HAVE_CONFIG_H
#undef POSIXACLS   /* override default by configure option */
#define USESTUBS 1 /* API stubs generated at link time */
#else
#define USESTUBS 0 /* direct calls to API, based on following definitions */
#define ENVNTFS3G "NTFS3G"
#define LIBFILE64 "/lib64/libntfs-3g.so.4921"
#define LIBFILE "/lib/libntfs-3g.so.4921"
#endif

So it seems, that I have to unset HAVE_CONFIG_H.

Should I do this, and how?
I'm not sure about the impact from defining ENVNTFS3G, LIBFILE64 and LIBFILE 
which will happen then.


I also have problems to run the locally compiled ntfs-3g.secaudit for test without installing it on my system.
If I run /src/ntfs-3g.secaudit/, I always see the results from the installed 
version.

How can I manage to run the just-built uninstalled binaries?



Finally, how did you get into the condition you are trying to fix ?

There are 2:
- broken indentation makes it more difficult to me to understand the code.
- redundancy makes it more difficult to me to understand the code.


I was asking what you were trying to fix, because I thought you had
hidden something about about fixing some ACL encoding or decoding
issue. If this is not the case, I am not interested.

Yes correct, the reason behind is, that I have a problem with ACL encoding.
See my post about: "Swapping order of ACEs significally changes permissions"

I went into this situation, when I had inherited permissions with help of 
Windows Explorer.

From Windows side it is not possible to influence the order of the ACEs in a 
ACL.
Additionally, the order can change, after manually adding or deleting 
permissions from Windows side.
But Windows doesn't care about the order, the resulting rights are always the 
same.
The Problem is, that NTFS-3G doesn't do that as well.

This could be changed by simply removing the influence of variable firstapply in ntfs_build_permissions(...) in acls.c.
So I have to find out, if this would break other things.


Regards,

Ulf

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to