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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"