Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/0917/1

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


No extra newlines in the error messages.
 [rsc] --rw-rw-r-- M 249245 glenda sys 11255 Sep 17 11:36 acme/mail/src/mail.c
	/n/sourcesdump/2005/0917/plan9/acme/mail/src/mail.c:151,157 - 
	/n/sourcesdump/2005/0918/plan9/acme/mail/src/mail.c:151,157
	  	s = estrstrdup(maildir, "ctl");
	  	mbox.ctlfd = open(s, ORDWR|OCEXEC);
	  	if(mbox.ctlfd < 0)
	- 		error("can't open %s: %r\n", s);
	+ 		error("can't open %s: %r", s);
	  
	  	fsname = estrdup(name);
	  	if(newdir && argc > 0){
	/n/sourcesdump/2005/0917/plan9/acme/mail/src/mail.c:163,169 - 
	/n/sourcesdump/2005/0918/plan9/acme/mail/src/mail.c:163,169
	  			err[0] = '\0';
	  			errstr(err, sizeof err);
	  			if(strstr(err, "mbox name in use") == nil)
	- 				error("can't create directory %s for mail: %s\n", name, err);
	+ 				error("can't create directory %s for mail: %s", name, err);
	  			free(fsname);
	  			fsname = emalloc(strlen(name)+10);
	  			sprint(fsname, "%s-%d", name, i);
 [rsc] --rw-rw-r-- M 249245 glenda sys 26290 Sep 17 11:36 acme/mail/src/mesg.c
	/n/sourcesdump/2005/0917/plan9/acme/mail/src/mesg.c:533,539 - 
	/n/sourcesdump/2005/0918/plan9/acme/mail/src/mesg.c:533,539
	  	Message *n, *next;
	  
	  	if(m->opened)
	- 		error("internal error: deleted message still open in mesgdel\n");
	+ 		error("internal error: deleted message still open in mesgdel");
	  	/* delete subparts */
	  	for(n=m->head; n!=nil; n=next){
	  		next = n->next;
 [sys] --rwxrwxr-x M 249245 rsc sys 179106 Sep 17 23:09 acme/bin/386/Mail
	/acme/mail/src/mail.c:mainctl
	/acme/mail/src/mail.c:mboxcommand
	/acme/mail/src/mail.c:plumbproc
	/acme/mail/src/mail.c:plumbsendproc
	/acme/mail/src/mail.c:plumbsendthread
	/acme/mail/src/mail.c:plumbshowproc
	/acme/mail/src/mail.c:plumbshowthread
	/acme/mail/src/mail.c:plumbthread
	/acme/mail/src/mail.c:showmesg
	/acme/mail/src/mail.c:threadmain
	/acme/mail/src/mesg.c:expandaddr
	/acme/mail/src/mesg.c:ext
	/acme/mail/src/mesg.c:isemail
	/acme/mail/src/mesg.c:mesgcommand
	/acme/mail/src/mesg.c:mesgctl
	/acme/mail/src/mesg.c:mesgline
	/acme/mail/src/mesg.c:mesgload
	/acme/mail/src/mesg.c:mesglookup
	/acme/mail/src/mesg.c:mesgopen
	/acme/mail/src/mesg.c:mesgsave
	/acme/mail/src/mesg.c:mesgtagpost
	/acme/mail/src/mesg.c:mimedisplay
	/acme/mail/src/mesg.c:plumb
	/acme/mail/src/mesg.c:printheader
	/acme/mail/src/mesg.c:replytoaddr
	/acme/mail/src/mesg.c:rewritembox


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].