Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2008 18:38:01 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tar bsdtar.c
Message-ID:  <200805191838.m4JIc1uE097888@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
cperciva    2008-05-19 18:38:01 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/tar          bsdtar.c 
  Log:
  Detect if argv[1] is "" and avoid calling malloc(0).  Prior to this commit,
  running 'tar ""' would print 'No memory' instead of the correct error
  message, 'Must specify one of -c, -r, -t, -u, -x' if malloc is set to
  System V mode (malloc(0) == NULL).
  
  Revision  Changes    Path
  1.90      +2 -2      src/usr.bin/tar/bsdtar.c



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