Plan 9 from Bell Labs’s /usr/web/sources/contrib/tristan/rio_clear.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


diff /n/sources/plan9/sys/src/cmd/rio/fsys.c /sys/src/cmd/rio/fsys.c
38c38
< 	{ "text",		QTFILE,	Qtext,		0400 },
---
> 	{ "text",		QTFILE,	Qtext,		0600 },
diff /n/sources/plan9/sys/src/cmd/rio/xfid.c /sys/src/cmd/rio/xfid.c
269a270,274
> 	case Qtext:
> 	/* OTRUNC is removed in fsys.c, and changing that changes all the tests */
> 		if(x->mode==OWRITE)
> 			wdelete(w, 0, w->nr);
> 		break;
506a512,515
> 		break;
> 
> 	case Qtext:
> 		/* opening for writes truncates, so ignore this for now */

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.