diff options
author | James Peach <jpeach@samba.org> | 2006-04-24 02:36:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:04:15 -0500 |
commit | cdae64b18c46926f32ecee71896e60b66228e8b0 (patch) | |
tree | 2661214539222d732d9f88d9e5b802ebf29857c5 /source4/include/system/dir.h | |
parent | 7baa8a13aa751e2a1de287d43de0884ea638f04e (diff) | |
download | samba-cdae64b18c46926f32ecee71896e60b66228e8b0.tar.gz samba-cdae64b18c46926f32ecee71896e60b66228e8b0.tar.bz2 samba-cdae64b18c46926f32ecee71896e60b66228e8b0.zip |
r15189: Add parentheses to force ISDOt and ISDOTDOT evaluation order. Fix typo
that made the BASE-DIR2 test fail.
(This used to be commit dcebc59a987b3c0d8379912d0451dedb9e895451)
Diffstat (limited to 'source4/include/system/dir.h')
-rw-r--r-- | source4/include/system/dir.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/include/system/dir.h b/source4/include/system/dir.h index ce6aae0264..14b36c0da0 100644 --- a/source4/include/system/dir.h +++ b/source4/include/system/dir.h @@ -46,16 +46,16 @@ */ #ifndef ISDOT #define ISDOT(path) ( \ - *((const char *)path) == '.' && \ - *(((const char *)path) + 1) == '\0' \ + *((const char *)(path)) == '.' && \ + *(((const char *)(path)) + 1) == '\0' \ ) #endif #ifndef ISDOTDOT #define ISDOTDOT(path) ( \ - *((const char *)path) == '.' && \ - *(((const char *)path) + 1) == '.' && \ - *(((const char *)path) + 2) == '\0' \ + *((const char *)(path)) == '.' && \ + *(((const char *)(path)) + 1) == '.' && \ + *(((const char *)(path)) + 2) == '\0' \ ) #endif |