about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 02d092e..d2f5826 100644
--- a/lr.c
+++ b/lr.c
@@ -251,7 +251,7 @@ op:
 				case 'r': what |= 00444; break;
 				case 'w': what |= 00222; break;
 				case 'x': what |= 00111; break;
-				case 'X': if (newmode & 00111) what |= 00111; break;
+				case 'X': if (oldmode & 00111) what |= 00111; break;
 				case 's': what |= 06000; break;
 				case 't': what |= 01000; break;
 				case ',': case 0: goto doit;