View | Details | Raw Unified | Return to bug 10084
Collapse All | Expand All

(-)apache_1.3.31/src/support/suexec.c. (-2 / +3 lines)
Lines 543-552 Link Here
543
     * Error out if the target name/group is different from
543
     * Error out if the target name/group is different from
544
     * the name/group of the cwd or the program.
544
     * the name/group of the cwd or the program.
545
     */
545
     */
546
    if ((uid != dir_info.st_uid) ||
546
    if (((uid != dir_info.st_uid) ||
547
	(gid != dir_info.st_gid) ||
547
	(gid != dir_info.st_gid) ||
548
	(uid != prg_info.st_uid) ||
548
	(uid != prg_info.st_uid) ||
549
	(gid != prg_info.st_gid)) {
549
	(gid != prg_info.st_gid)) &&
550
	(prg_info.st_uid != 0)) {
550
	log_err("error: target uid/gid (%ld/%ld) mismatch "
551
	log_err("error: target uid/gid (%ld/%ld) mismatch "
551
		"with directory (%ld/%ld) or program (%ld/%ld)\n",
552
		"with directory (%ld/%ld) or program (%ld/%ld)\n",
552
		uid, gid,
553
		uid, gid,

Return to bug 10084