Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2007 16:13:31 +0000 (UTC)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/crunch/crunchgen crunched_main.c
Message-ID:  <200710271613.l9RGDVHa023203@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2007-10-27 16:13:31 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/crunch/crunchgen crunched_main.c 
  Log:
  Set the program name if the crunched program is selected through
  argv[1] to mimic crt0 behaviour.  Do the job by a direct assignment
  to __progname in order to stay compatible with NetBSD, whose
  setprogname() is a deliberate no-op.
  
  The reason for this change is that some programs (usually those
  imported from NetBSD) use getprogname() to distinguish between their
  aliases.  (See pkill aka pgrep for example.)
  
  This change can be useful, and applicable, to NetBSD, too.
  
  Revision  Changes    Path
  1.9       +5 -0      src/usr.sbin/crunch/crunchgen/crunched_main.c



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