about summary refs log tree commit diff stats
path: root/src/ltm.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-02-02 23:44:25 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-02-02 23:44:25 -0800
commita8dfea1d3c686437a29938a29b4b0543d8190267 (patch)
treef7c8019ba86b35f68af8ec8726e4f860f5acaa31 /src/ltm.c
parent8f8a0e5a181de799ce95c5d91c0266e0a06671d8 (diff)
downloadteliva-a8dfea1d3c686437a29938a29b4b0543d8190267.tar.gz
drop io.lines()
I'd already dropped the variant without a filename. But even the variant
with a filename is very easy to use in a way that is confusing to use in
the presence of sandboxing:

* call io.lines()
* Sandboxing saves an error, io.lines() returns nil
* Caller (usually a loop) raises an error.
* We show the error and not the sandboxing failure.
* Worse, there's no way to adjust permissions from within Teliva,
  because we can't ever get to that menu while there's an error.

Best solution I can come up with: encourage a separate step for
translating filename to file handle. That way it's more obvious that we
need to check for errors.
Diffstat (limited to 'src/ltm.c')
0 files changed, 0 insertions, 0 deletions
span class='oid'>cd47d26a ^
2753e22e ^
cb3654b6 ^
e6b847b3 ^
8a43e6ca ^
e6b847b3 ^
a9000364 ^
e6b847b3 ^
34fec205 ^
8a43e6ca ^
cd703e2b ^
8a43e6ca ^
cd703e2b ^
e6b847b3 ^
8a43e6ca ^


ca93ee5a ^
8a43e6ca ^
e6b847b3 ^
e6b847b3 ^

f38066d3 ^
8a43e6ca ^





e6b847b3 ^
8a43e6ca ^
1a2145bb ^
8a43e6ca ^

9c801326 ^

e6b847b3 ^

f38066d3 ^







e6b847b3 ^

8a43e6ca ^


1a2145bb ^
8a43e6ca ^




1a2145bb ^
8a43e6ca ^


e6b847b3 ^
8a43e6ca ^
e6b847b3 ^
a9000364 ^
8a43e6ca ^


f68763ad ^
e6b847b3 ^
a9000364 ^
8a43e6ca ^



1a2145bb ^
f68763ad ^
8a43e6ca ^




e6b847b3 ^
8a43e6ca ^
f38066d3 ^

8a43e6ca ^
f38066d3 ^
8a43e6ca ^
f38066d3 ^



8a43e6ca ^
e6b847b3 ^
a9000364 ^
8a43e6ca ^


f38066d3 ^



8a43e6ca ^

e6b847b3 ^
a9000364 ^
8a43e6ca ^

878f0f57 ^
e6b847b3 ^
a9000364 ^
1a2145bb ^
e6b847b3 ^
a9000364 ^
8a43e6ca ^










e6b847b3 ^
8a43e6ca ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137