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, |