Received: (at submit) by bugs.debian.org; 15 Dec 1996 11:20:19 +0000 Received: (qmail 12390 invoked from network); 15 Dec 1996 11:20:14 -0000 Received: from taurus.cus.cam.ac.uk (cusexim@131.111.8.48) by master.debian.org with SMTP; 15 Dec 1996 11:20:13 -0000 Received: from gpp10 by taurus.cus.cam.ac.uk with smtp (Exim 1.59 #1) id 0vZGQg-00050c-00; Sun, 15 Dec 1996 13:16:30 +0000 To: submit@bugs.debian.org Subject: unix2dos broken for mounted msdos partitions Date: Sun, 15 Dec 1996 13:16:30 +0000 From: Giuliano Procida Message-Id: Package:sysutils Version:1.2-1 Example. Mounted an MSDOS file system on /mnt. # touch /mnt/foobar; strace unix2dos /mnt/foobar [snip] stat("/mnt/foobar", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0 getpid() = 4467 stat("/mnta04467", 0xbffffdd0) = -1 ENOENT (No such file or directory) open("/mnt/foobar", O_RDONLY) = 3 open("/mnta04467", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 brk(0x8008000) = 0x8008000 brk(0x800d000) = 0x800d000 read(3, "", 16384) = 0 close(3) = 0 close(4) = 0 unlink("/mnt/foobar") = 0 rename("/mnta04467", "/mnt/foobar") = -1 EXDEV (Cross-device link) chmod("/mnt/foobar", 0100755) = -1 ENOENT (No such file or directory) _exit(0) = ? This has deleted the original and left droppings in / due to the temporary filename generation being knackered. Giuliano.