From mboxrd@z Thu Jan 1 00:00:00 1970 From: arisawa@ar.aichi-u.ac.jp To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20011210035927.307E3199B5@mail.cse.psu.edu> Subject: [9fans] Bug fix to `backup' Date: Mon, 10 Dec 2001 12:59:15 +0900 Topicbox-Message-UUID: 31d3850c-eaca-11e9-9e20-41e7f4b1d025 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