#335152 ignores failure conditions

Package:
mtools
Source:
mtools
Description:
Tools for manipulating MSDOS files
Submitter:
Joey Hess
Date:
2010-07-08 21:54:06 UTC
Severity:
normal
#335152#5
Date:
2005-10-22 02:16:59 UTC
From:
To:
syslinux doesn't care if it fails to write to a full disk and will
return zero anyway:

joey@dragon:~/src/d-i/installer/build/dest/floppy>syslinux boot.img
No free cluster 0 2848
write in copy: No space left on device
joey@dragon:~/src/d-i/installer/build/dest/floppy>echo $?
0

#335152#20
Date:
2010-07-08 21:28:47 UTC
From:
To:
retitle ignores failure conditions
reassign 335152 mtools
thanks

Hi,

according to hans peter anvin, the syslinux upstream author, this is not
a bug in syslinux but in mtools, i'm therefore reassigning it.

Regards,
Daniel

#335152#29
Date:
2010-07-08 21:21:45 UTC
From:
To:
The problem is that mtools (mcopy) returns 0 despite failure.  syslinux
does handle an error code from mtools if one is provided, thus if mtools
is fixed this problem goes away in syslinux.