diff options
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test.c b/src/test.c index 2b04e433e..27db19da2 100644 --- a/src/test.c +++ b/src/test.c @@ -318,7 +318,7 @@ binary_operator (bool l_is_l) struct timespec lt, rt; bool le, re; pos += 3; - if (l_is_l | r_is_l) + if (l_is_l || r_is_l) test_syntax_error (_("-nt does not accept -l"), NULL); le = get_mtime (argv[op - 1], <); re = get_mtime (argv[op + 1], &rt); @@ -331,7 +331,7 @@ binary_operator (bool l_is_l) { /* ef - hard link? */ pos += 3; - if (l_is_l | r_is_l) + if (l_is_l || r_is_l) test_syntax_error (_("-ef does not accept -l"), NULL); return (stat (argv[op - 1], &stat_buf) == 0 && stat (argv[op + 1], &stat_spare) == 0 @@ -347,7 +347,7 @@ binary_operator (bool l_is_l) struct timespec lt, rt; bool le, re; pos += 3; - if (l_is_l | r_is_l) + if (l_is_l || r_is_l) test_syntax_error (_("-ot does not accept -l"), NULL); le = get_mtime (argv[op - 1], <); re = get_mtime (argv[op + 1], &rt); |