alc
524cb00f17
Fix exec_imgact_shell()'s handling of two error cases: (1) Previously, if
...
the first line of a script exceeded MAXSHELLCMDLEN characters, then
exec_imgact_shell() silently truncated the line and passed on the truncated
interpreter name or argument. Now, exec_imgact_shell() will fail and return
ENOEXEC, which is the commonly used errno among Unix variants for this type
of error. (2) Previously, exec_imgact_shell()'s check on the length of the
interpreter's name was ineffective. In other words, exec_imgact_shell()
could not possibly fail and return ENAMETOOLONG. The reason being that the
length of the interpreter name had to exceed MAXSHELLCMDLEN characters in
order that ENAMETOOLONG be returned. But, the search for the end of the
interpreter name stops after at most MAXSHELLCMDLEN - 2 characters are
scanned. (In the end, this particular error is eventually discovered
outside of exec_imgact_shell() and ENAMETOOLONG is returned. So, the real
effect of this second change is that the error is detected earlier, in
exec_imgact_shell().)
Update the definition of MAXINTERP to the actual limit on the size of
the interpreter name that has been in effect since r142453 (from
2005).
In collaboration with: kib
2010-09-21 16:24:51 +00:00
..
2009-12-05 19:31:38 +00:00
2007-01-09 00:28:16 +00:00
2006-09-30 10:24:00 +00:00
2009-11-02 07:21:13 +00:00
2010-05-13 12:07:55 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-03 02:41:54 +00:00
2006-09-26 09:47:46 +00:00
2006-10-07 10:49:20 +00:00
2008-04-03 02:41:54 +00:00
2009-06-01 09:32:12 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-16 13:03:12 +00:00
2008-04-16 13:03:12 +00:00
2007-01-09 00:28:16 +00:00
2009-12-29 15:58:10 +00:00
2009-06-15 20:38:55 +00:00
2009-06-15 20:38:55 +00:00
2010-09-06 21:39:54 +00:00
2010-09-12 14:04:05 +00:00
2010-01-09 12:31:11 +00:00
2007-01-09 00:28:16 +00:00
2010-09-21 16:24:51 +00:00
2008-01-29 18:15:38 +00:00
2010-05-06 22:49:54 +00:00
2008-05-30 14:47:42 +00:00
2010-06-08 16:48:59 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-07-04 23:27:38 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-08-16 15:18:30 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-06-26 21:44:05 +00:00
2010-06-08 16:48:59 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-05-06 22:49:54 +00:00
2010-06-08 16:48:59 +00:00
2007-01-09 00:28:16 +00:00
2009-06-30 20:53:56 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2009-10-11 00:08:55 +00:00
2010-05-11 17:02:12 +00:00
2007-01-09 00:28:16 +00:00
2010-08-02 16:01:45 +00:00
2007-01-09 00:28:16 +00:00
2006-09-17 21:27:35 +00:00
2010-08-16 15:18:30 +00:00
2008-12-25 09:15:31 +00:00
2010-08-06 14:33:42 +00:00
2007-02-14 07:38:39 +00:00
2008-08-02 13:49:12 +00:00
2009-07-19 16:48:25 +00:00
2006-10-07 05:13:32 +00:00
2007-01-09 00:28:16 +00:00
2007-04-05 21:17:52 +00:00
2007-07-04 23:27:38 +00:00
2007-01-09 00:28:16 +00:00
2010-09-10 01:47:37 +00:00
2008-03-28 04:29:27 +00:00
2007-10-30 15:28:43 +00:00
2008-06-30 08:46:09 +00:00
2008-04-16 13:03:12 +00:00
2008-04-16 13:03:12 +00:00
2010-07-27 20:34:37 +00:00
2010-07-27 20:34:37 +00:00
2010-08-28 16:57:07 +00:00
2007-07-04 23:27:38 +00:00
2008-07-15 10:06:37 +00:00
2010-05-27 03:15:04 +00:00
2007-01-09 00:28:16 +00:00
2010-06-08 16:48:59 +00:00
2010-06-08 16:48:59 +00:00
2010-06-08 16:48:59 +00:00
2010-06-08 16:48:59 +00:00
2010-06-08 16:48:59 +00:00
2010-06-08 16:48:59 +00:00
2010-06-08 16:48:59 +00:00
2009-07-13 12:53:43 +00:00
2009-07-13 12:53:43 +00:00
2009-07-13 12:53:43 +00:00
2009-07-13 12:53:43 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2009-10-11 16:23:11 +00:00
2007-01-09 00:28:16 +00:00
2010-08-16 15:18:30 +00:00
2010-08-16 15:18:30 +00:00
2009-07-08 15:23:18 +00:00
2008-11-11 14:55:59 +00:00
2008-08-20 08:31:58 +00:00
2007-07-04 23:27:38 +00:00
2007-01-09 00:28:16 +00:00
2009-10-28 11:14:32 +00:00
2010-08-06 14:33:42 +00:00
2007-07-04 23:27:38 +00:00
2010-03-16 06:12:30 +00:00
2007-01-09 00:28:16 +00:00
2008-04-16 13:03:12 +00:00
2007-01-09 00:28:16 +00:00
2008-11-30 21:40:01 +00:00
2008-11-07 15:01:40 +00:00
2009-06-15 21:52:27 +00:00
2007-05-14 13:58:54 +00:00
2007-01-09 00:28:16 +00:00
2010-01-12 21:45:03 +00:00
2010-01-12 21:45:03 +00:00
2010-07-30 11:58:18 +00:00
2007-12-19 03:33:13 +00:00
2009-06-29 18:54:17 +00:00
2010-08-28 16:32:01 +00:00
2009-02-05 14:06:09 +00:00
2010-01-07 21:14:46 +00:00
2009-09-18 14:17:00 +00:00
2009-06-19 15:58:24 +00:00
2009-12-01 06:12:31 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-05-13 12:07:55 +00:00
2010-08-16 15:18:30 +00:00
2009-06-29 18:54:17 +00:00
2007-03-07 13:38:11 +00:00
2010-05-06 22:49:54 +00:00
2010-08-29 16:38:08 +00:00
2007-01-09 00:28:16 +00:00
2010-05-07 20:46:22 +00:00
2006-09-17 21:27:35 +00:00
2010-05-06 22:49:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-09-10 01:47:37 +00:00
2009-01-05 12:18:46 +00:00
2007-01-09 00:28:16 +00:00
2010-08-24 12:58:54 +00:00
2010-08-24 13:02:22 +00:00
2010-03-28 13:40:13 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-09-10 01:47:37 +00:00
2008-04-16 13:03:12 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2009-01-12 13:12:02 +00:00
2007-06-18 01:50:03 +00:00
2007-06-18 01:50:03 +00:00
2007-01-09 00:28:16 +00:00
2007-07-04 23:27:38 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2010-04-25 13:55:52 +00:00
2008-04-16 13:03:12 +00:00
2010-03-02 17:20:04 +00:00
2010-05-06 22:49:54 +00:00
2010-01-20 22:26:36 +00:00
2007-01-09 00:28:16 +00:00