Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1223/2

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


Invoke pgp correctly.
 [rsc] --rw-rw-r-- M 777458 glenda sys 32852 Dec 23 10:37 sys/src/cmd/upas/marshal/marshal.c
	/n/sourcesdump/2005/1223/plan9/sys/src/cmd/upas/marshal/marshal.c:1125,1130 - 
	/n/sourcesdump/2005/1224/plan9/sys/src/cmd/upas/marshal/marshal.c:1125,1131
	  	v = av = emalloc(sizeof(char*)*8);
	  	ac = 0;
	  	v[ac++] = "pgp";
	+ 	v[ac++] = "-fat";		/* operate as a filter, generate text */
	  	if(pgpflag & PGPsign)
	  		v[ac++] = "-s";
	  	if(pgpflag & PGPencrypt)
	/n/sourcesdump/2005/1223/plan9/sys/src/cmd/upas/marshal/marshal.c:1144,1150 - 
	/n/sourcesdump/2005/1224/plan9/sys/src/cmd/upas/marshal/marshal.c:1145,1153
	  		dup(fd, 1);
	  		close(fd);
	  
	- 		exec("/bin/upas/pgp", av);
	+ 		/* add newline to avoid confusing pgp output with 822 headers */
	+ 		write(1, "\n", 1);
	+ 		exec("/bin/pgp", av);
	  		fatal("execing: %r");
	  		break;
	  	default:


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].