diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-07-12 10:44:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-17 14:01:39 +0100 |
commit | b066632e2ee0e65b80b6c436072bedba820f2604 (patch) | |
tree | 4ec6edffbfd3ef32f9f7a4911a1788d3bd25826a /scripts/gen-site-config | |
parent | 3ae1f267d4fd887e6b7039cada73b5de034a846d (diff) | |
download | poky-b066632e2ee0e65b80b6c436072bedba820f2604.tar.gz |
base-files: ignore "mesg n" error messages
When using "su - myuser" to change from root to a non-privileged user,
"mesg n" from the default .profile fails with "mesg: error: tty device
is not owned by group `tty' or "mesg: cannot open /dev/ttyS0:
Permission denied", depending on whether mesg comes from busybox or
util-linux.
This does not happen during a normal login because permissions on
/dev/tty* get changed while doing that, something that isn't possible
with plain "su -".
As the error can't be avoided and failures of mesg probably aren't
particularly important, now error messages get dumped to /dev/null.
[YOCTO #11127]
(From OE-Core rev: 4511a524f906c97db7c7674ad34e7bc8630649e3)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/gen-site-config')
0 files changed, 0 insertions, 0 deletions