3 ms·
From TFS¹, creat() on an existing file truncates it (i.e. to length zero, as O_TRUNC), and only the superuser can do this to a directory. open() has read/write
by kps 7y ago
From TFS¹, creat() on an existing file truncates it (i.e. to length zero, as O_TRUNC), and only the superuser can do this to a directory. open() has read/write flag bits as now.
I am leaning toward Pete_D's ‘pack directory’ idea.
¹ https://github.com/DoctorWkt/pdp7-unix/blob/e94417092a2980e758fd536a3d9f59fb168d5e54/src/sys/s2.s#L239 https://github.com/DoctorWkt/pdp7-unix/blob/e94417092a2980e7...