svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Mon Feb 11 08:35:03 UTC 2008


Author: vda
Date: 2008-02-11 00:35:03 -0800 (Mon, 11 Feb 2008)
New Revision: 20978

Log:
hush: set CLOEXEC on script file being executed



Modified:
   trunk/busybox/shell/hush.c


Changeset:
Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c	2008-02-11 08:32:31 UTC (rev 20977)
+++ trunk/busybox/shell/hush.c	2008-02-11 08:35:03 UTC (rev 20978)
@@ -3918,6 +3918,7 @@
 		global_argv = argv + optind;
 		global_argc = argc - optind;
 		input = xfopen(argv[optind], "r");
+		fcntl(fileno(input), F_SETFD, FD_CLOEXEC);
 		opt = parse_and_run_file(input);
 	}
 




More information about the busybox-cvs mailing list