Date: Wed, 18 Nov 1998 17:04:52 +0100 (CET) From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> To: Jonathan Chen <jonc@pinnacle.co.nz> Cc: freebsd-questions@FreeBSD.ORG, G578@ix.netcom.com Subject: Re: C executables Message-ID: <XFMail.981118170452.asmodai@wxs.nl> In-Reply-To: <Pine.SCO.3.96.981118153445.10781A-100000@kiwi.pinnacle.co.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18-Nov-98 Jonathan Chen wrote: > On Tue, 17 Nov 1998 G578@ix.netcom.com wrote: >> You >> compile, you don't specify an object module name, it defaults to >> "a.out", then you type "a.out" and, Voila, Hello World! Why am I >> getting Voila, Not Found? > > By default, your executable search-path doesn't include the current > directory. You'll be able to run your program with: > > ./a.out > > If you want to include the current directory, you'll have to modify > your startup script for your shell (.login/.profile/.bashrc/etc) to > include the current directory for PATH And by doing that ye start the slow descent into security compromise. If one would have . in their PATH ye are risking to faster execute maliscious code than by doing ./name. Surely others on this list have more to say on this matter. I just know enough of the long story that I was being told about PATH and . to keep myself out of that trouble... --- Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl | Cum angelis et pueris, Junior Network/Security Specialist | fideles inveniamur *BSD & picoBSD: The Power to Serve... <http://www.freebsd.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.981118170452.asmodai>