Commit 41b46a3d authored by David Johnson's avatar David Johnson

Fix error msg to include group, not only others.

Say in the error msg that not only might the file be writable by other,
but also by group.  Kinda deceiving.
parent a2beb164
......@@ -650,7 +650,7 @@ int main(int argc, char *argv[])
#else
if ((dir_info.st_mode & S_IWOTH) || (dir_info.st_mode & S_IWGRP)) {
#endif
log_err("error: directory is writable by others: (%s)\n", cwd);
log_err("error: directory is writable by group or other: (%s)\n", cwd);
exit(116);
}
......@@ -666,7 +666,7 @@ int main(int argc, char *argv[])
* Error out if the program is writable by others.
*/
if ((prg_info.st_mode & S_IWOTH) || (prg_info.st_mode & S_IWGRP)) {
log_err("error: file is writable by others: (%s/%s)\n", cwd, cmd);
log_err("error: file is writable by group or other: (%s/%s)\n", cwd, cmd);
exit(118);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment