9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Bug fix to `backup'
@ 2001-12-10  3:59 arisawa
  0 siblings, 0 replies; only message in thread
From: arisawa @ 2001-12-10  3:59 UTC (permalink / raw)
  To: 9fans

Hello,

Posted `backup' contains a bug.
Fix as bellow:

			if(sd->mode & CHDIR){
				char *p;
				/* create the directory and go on */
				p = mkpath2(dst, newpath);
				f = create(p, OREAD, sd->mode); // dstpath --> p
				if(f < 0)
					fprint(2, "mkdir: can't create %s: %r\n", p);
				close(f);
				free(p);
				backup(newpath);
			}



Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-10  3:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-10  3:59 [9fans] Bug fix to `backup' arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).