View | Details | Raw Unified | Return to bug 18433 | Differences between
and this patch

Collapse All | Expand All

(-)a/ChangeLog (+5 lines)
Lines 1-3 Link Here
1
2015-09-10  Navid Rahimi  <rahimi.nv@gmail.com>
2
3
	[BZ #18433]
4
	* sysdeps/posix/spawni.c (__spawni): Check file access before forking.
5
1
2015-09-08  Joseph Myers  <joseph@codesourcery.com>
6
2015-09-08  Joseph Myers  <joseph@codesourcery.com>
2
7
(-)a/sysdeps/posix/spawni.c (+3 lines)
Lines 90-95 __spawni (pid_t *pid, const char *file, Link Here
90
  size_t len;
90
  size_t len;
91
  size_t pathlen;
91
  size_t pathlen;
92
92
93
  if(__access (file, X_OK) != 0)
94
    return errno;
95
93
  /* Do this once.  */
96
  /* Do this once.  */
94
  short int flags = attrp == NULL ? 0 : attrp->__flags;
97
  short int flags = attrp == NULL ? 0 : attrp->__flags;

Return to bug 18433