diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-24 17:10:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-24 17:10:24 +0000 |
commit | 8e5de2aab7421677fd92a5f24da3d2a99dacf9f1 (patch) | |
tree | b450e4a6eb5f0814db65c79fd518a0377ce57b2f | |
parent | e261bba6a5874bdaff92eef3df759e5ec026f7e0 (diff) | |
download | busybox-w32-8e5de2aab7421677fd92a5f24da3d2a99dacf9f1.tar.gz busybox-w32-8e5de2aab7421677fd92a5f24da3d2a99dacf9f1.tar.bz2 busybox-w32-8e5de2aab7421677fd92a5f24da3d2a99dacf9f1.zip |
login: fix buglet introduced by "simplification"
-rw-r--r-- | loginutils/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index cdc38fbaf..85bb737a6 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -180,7 +180,7 @@ static void initselinux(char *username, char *full_tty, | |||
180 | if (getfilecon(full_tty, &old_tty_sid) < 0) { | 180 | if (getfilecon(full_tty, &old_tty_sid) < 0) { |
181 | bb_perror_msg_and_die("getfilecon(%s) failed", full_tty); | 181 | bb_perror_msg_and_die("getfilecon(%s) failed", full_tty); |
182 | } | 182 | } |
183 | if (security_compute_relabel(user_sid, old_tty_sid, | 183 | if (security_compute_relabel(*user_sid, old_tty_sid, |
184 | SECCLASS_CHR_FILE, &new_tty_sid) != 0) { | 184 | SECCLASS_CHR_FILE, &new_tty_sid) != 0) { |
185 | bb_perror_msg_and_die("security_change_sid(%s) failed", full_tty); | 185 | bb_perror_msg_and_die("security_change_sid(%s) failed", full_tty); |
186 | } | 186 | } |