Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 03:47:46 -0800 (PST)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/bin/cp utils.c
Message-ID:  <199811181147.DAA09307@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         1998/11/18 03:47:45 PST

  Modified files:
    bin/cp               utils.c 
  Log:
  Don't use mmap() for non-regular files, since st_size is only meaningful
  for regular files.  This fixes recent breakage of cp'ing from /dev/zero.
  /dev/zero doesn't support mmap(), but the device driver mmap routines are
  not called for mapping 0 bytes, so the error was not detected.  mmap()
  can't even be used for cp'ing special files that support mmap(), since
  there is general way to determine the file size.
  
  Revision  Changes    Path
  1.21      +2 -2      src/bin/cp/utils.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811181147.DAA09307>