projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now makes the temporary editing file mode 0400 if in readonly
[unix-history]
/
usr
/
src
/
usr.bin
/
ex
/
ex_io.c
diff --git
a/usr/src/usr.bin/ex/ex_io.c
b/usr/src/usr.bin/ex/ex_io.c
index
8f18719
..
852b4e3
100644
(file)
--- a/
usr/src/usr.bin/ex/ex_io.c
+++ b/
usr/src/usr.bin/ex/ex_io.c
@@
-361,7
+361,7
@@
rop(c)
value(READONLY) = ovro;
denied = 0;
}
value(READONLY) = ovro;
denied = 0;
}
- if (c != 'r' && (
stbuf.st_mode & 0222) == 0 || access(file, 2) < 0
) {
+ if (c != 'r' && (
(stbuf.st_mode & 0222) == 0 || access(file, 2) < 0)
) {
ovro = value(READONLY);
denied = 1;
value(READONLY) = 1;
ovro = value(READONLY);
denied = 1;
value(READONLY) = 1;