cvs commit: src/usr.sbin/crunch/crunchgen crunched_main.c

Yar Tikhiy yar at FreeBSD.org
Sat Oct 27 09:13:33 PDT 2007


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


More information about the cvs-src mailing list