Package: klibc-utils
Version: 1.2.6-1
Severity: normal

dd doesn't overwrite an existing file when the new one is smaller:

[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ls -l 
/etc/debian_version /etc/hosts
-rw-r--r-- 1 root root  17 Jun  6  2005 /etc/debian_version
-rw-r--r-- 1 root root 262 May 11 21:49 /etc/hosts

[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ cp /etc/hosts x
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ls -l x
-rw-r--r-- 1 tbm tbm 262 May 15 15:41 x
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ./dd 
if=/etc/debian_version of=x
0+1 records in
0+1 records out
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ls -l x
-rw-r--r-- 1 tbm tbm 262 May 15 15:41 x

[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ cp /etc/debian_version x
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ls -l x
-rw-r--r-- 1 tbm tbm 17 May 15 15:42 x
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ./dd if=/etc/hosts of=x
0+1 records in
0+1 records out
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$ ls -l x
-rw-r--r-- 1 tbm tbm 262 May 15 15:42 x
[EMAIL PROTECTED]:~/src/klibc-1.3.21/usr/utils/static$




-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages klibc-utils depends on:
ii  libklibc                      1.2.6-1    minimal libc subset for use with i

klibc-utils recommends no packages.

-- no debconf information

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to