summaryrefslogtreecommitdiff
path: root/lib/libc/gen/exec.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-11-20 15:09:38 +0000
committerBruce Evans <bde@FreeBSD.org>1997-11-20 15:09:38 +0000
commit70df31a6274f347a0bf3a5ee114a24ef103fde19 (patch)
treebef363b6c2c281c163b9a3d1c4ab8bac7a8c9800 /lib/libc/gen/exec.c
parent74b634ac407cbadd102f2faca1f3073577a206c8 (diff)
Notes
Diffstat (limited to 'lib/libc/gen/exec.c')
-rw-r--r--lib/libc/gen/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c
index c083957c4d9c..3b77ee9d7c83 100644
--- a/lib/libc/gen/exec.c
+++ b/lib/libc/gen/exec.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: exec.c,v 1.6 1997/10/14 07:23:16 bde Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -283,7 +283,7 @@ retry: (void)execve(bp, argv, environ);
* We hope that the race for a stat() is unimportant.
*/
save_errno = errno;
- if (stat(argv[0], &sb) != 0)
+ if (stat(bp, &sb) != 0)
break;
if (save_errno == EACCES) {
eacces = 1;